I want to send the data and then parse the "1 success" or "0 ..." response messages so that I can update an LED for the user to see that logging was successful. When I run the example, I don't get a success/failure response after the first go - even though I can see through the public URL that the data did indeed post correctly after each button press.
Here is an example where I posted data three times (using three button-presses a few seconds apart).
Code: Select all
CC3000 Ready! Connecting to... eyepee My IP: 192.168.1.228 =========== Ready to Stream =========== Press the button (D3) to send an update Type your name, followed by '!' to update name [button pressed a first time] Posting! Connection: close HTTP/1.1 200 OK Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,DELETE Access-Control-Allow-Headers: X-Requested-With, Phant-Private-Key Content-Type: text/plain X-Rate-Limit-Limit: 300 X-Rate-Limit-Remaining: 299 X-Rate-Limit-Reset: 1432006130.059 Date: Tue, 19 May 2015 03:13:50 GMT Connection: close Transfer-Encoding: chunked Set-Cookie: SERVERID=phantworker2; path=/ a 1 success 0 [button pressed a second time] Posting! Connection: close [button pressed a third time] Posting! Connection: close