嗨,我正在尝试从arduino中的Web服务器解析JSON响应,以便打开和关闭LED灯。我正在使用wifi客户端重复示例向服务器发出get请求:
http://arduino.cc/en/Tutorial/WiFiWebClientRepeating
这是我从串口打印回来的内容
connecting...
HTTP/1.1 200 OK
Date: Sun, 06 Apr 2014 01:14:37 GMT
Server: Apache
X-Powered-By: PHP/5.5.10
Cache-Control: no-cache
X-Frame-Options: SAMEORIGIN
Set-Cookie: expires=Sun, 06-Apr-2014 03:14:37 GMT; Max-Age=7200; path=/; httponly
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json
19
{"lightstatus":"on"}
0
我如何仅解析此响应的JSON部分,以便可以使用它来控制我的LED?
谢谢