Timeline for Parse a large json response with ESP8266
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 22, 2019 at 4:53 | comment | added | romkey |
ESP.getFreeHeap() is a diagnostic function. It returns how much memory is left to allocate. The example calls it to prove that the parser isn't leakimg or running out of memory. In the example it should be the same before and after running the parser. ESP is a special class with functions for dealing with the ESP8266 processor. You don't need to deal with any of the ESP functions. You need to read a single character at a time from your HTTP client and then feed each character to parse.parse().
|
|
| Feb 21, 2019 at 20:02 | comment | added | hayk |
Thanks, I've seen this before, but I'm not completely sure how this works. (a) In the example, in ESP.getFreeHeap(), is ESP the software serial instance? (b) What should I actually feed to the parse.parse(...)? Is it the http.getString() return?
|
|
| Feb 21, 2019 at 5:17 | history | answered | romkey | CC BY-SA 4.0 |