【发布时间】:2014-04-01 07:20:51
【问题描述】:
当我收到 HTTP 消息时,我想在 Arduino 上进行比较。我可以看到所有请求。 如何保存最后显示的“你好”并运行如下代码:如果“你好”,则执行一些操作。
char buffer;
while (client.connected()) {
while (client.available()) {
buffer = client.read();
Serial.print(buffer);
}}
Serial.println("Closing connection");
Serial.println("");
client.close();
串行监视器:
Connect to 192.168.2.101:80
Connected & Data sent
TTP/1.1 200 OK
Date: Sun, 30 Mar 2014 20:27:43 GMT
Server: Apache/2.2.25 (Win32) mod_ssl/2.2.25 OpenSSL/0.9.8y
X-Powered-By: ZendServer 6.3.0
Set-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/
Connection: close
Content-Type: text/html
helloClosing connection
【问题讨论】:
标签: c++ http variables arduino