We got the electron in the mail and have been playing around getting it talking to our servers. With the electron we have been using the great HttpClient library which can be found here: https://github.com/nmattisson/HttpClient/blob/master/firmware/HttpClient.cpp
Overall we are able to get data TO the server. The JSON packet we send is received and parsed no problem. The problem is getting the data FROM the server (in the http response) here is what we have tried:
-
Server returns a status code 200 and some text in the body: The electron can see that the server returned a 200, but it does not see any of the body.
-
Server returns a status code 400 and some text in the body: The electron can NOT see that the server returned a 400, and the buffer is entirely empty.
In both of these cases the photon can see not only the status code, but also the http response body using the same code as the electron without any issues. I suspect we have a bug somewhere. Has anyone played around with http on the electron yet?