One of the things this community is famous for is the extent to which people will come together to meet an obvious need. Look at the vast array of libraries available for Arduino as an example of how people are willing to devote their time to making difficult tasks easier, often for little more than a virtual pat on the back.
A higher level than the library editors are those who go to the trouble of explaining how all of these libraries work in real world applications. [Brian Lough] recently took up this challenge with an in-depth explanation of using the ArduinoJSON library, a very useful but often confusing library that facilitates IoT projects.
The need for an ArduinoJSON explanatory without hitting its author, [Benoît Blanchon], who did an excellent job of documenting the library; it’s more of a realization that the nature of JSON itself means that a library that works with it is going to be complex. [Brian]The contribution from here is to share his ideas for making ArduinoJSON operational in a real-world ESP32 example, and to address the potential pitfalls of parsing a human-readable text file that can be used to represent almost no. any data object using limited resources. of a microcontroller. In addition to the basics, we found the disclaimer about how pointers refer to the dynamic JSON document object particularly useful; the bit about using filters to dump a large data set was also helpful.
Thanks to [Brian] for taking the time to disseminate this valuable information. Hopefully this will encourage others to share the wealth of hard-earned knowledge in an equally clear and concise way.
continue reading “Make APIs Work With This ArduinoJson Walkthrough”