Timeline for How to send data in response to HTTP get request from ESP8266?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 26, 2017 at 11:25 | vote | accept | ahmadx87 | ||
Apr 30, 2017 at 18:19 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 31, 2017 at 16:39 | answer | added | ahmadx87 | timeline score: 1 | |
Mar 31, 2017 at 16:20 | comment | added | ahmadx87 | Thank you @Gerben! I spent hours searching but no success. It worked like a charm. | |
Mar 31, 2017 at 10:45 | comment | added | Gerben | After the last header you need to send two newlines (\r\n\r\n) and then send your data. | |
Mar 31, 2017 at 8:50 | comment | added | ahmadx87 | Thak you for your input. To use send method I have to include ESP8266WebServer.h and modify my code. I think there should an easy way to send some text (like HTML markup) after the header. | |
Mar 30, 2017 at 23:29 | comment | added | dandavis |
look at the webserver example. something like server.send(200, "text/plain", someStringOfContentHere); build up the string with the data you need.
|
|
Mar 30, 2017 at 20:50 | history | asked | ahmadx87 | CC BY-SA 3.0 |