I am using the Arduino IDE with ESP-library on top. No LUA.

I am using the Arduino IDE with ESP-library on top. No LUA.

I am searching for a HTTP-GET-Connect (ESP acts as client) procedure which can store a response with dynamic length. For example, http://openweather.org API returns a JSON structure I then want to parse.

So far, I can only store a limited amount of the JSON, about 200 bytes. Works good, I can read the key-values and use them to trigger the onboard LED as an example.

Two issues:
JSON parsing will crash the ESP on large data
And I don’t know how to store the HTTP-response with more than 256 bytes.

Anyone?

Care to share your code?

The moment I posted this question, I stumbled upon a post just 3 posts away in this community:

https://plus.google.com/+MarcoSchwartz/posts/TPnH2nNzJjj

Exactly what I need :slight_smile:

Turns out, his code actually does not use the Json library. And my - now fully loaded - HTTP-response still makes the ESP crash when trying to parse the JsonObject.

Is this the right place to show and discuss programming code?