A collection of programming snippets, tips, and tricks for developing with Particle IoT devices
Tips on how to format and parse data.
Try the JsonParserGeneratorRK
library for sending or receiving JSON data.
There is also the JsonStreamingParser
library,
which might be useful if you need to extract data from a large JSON response.
String
class and string concatenationWhen possible, avoid using the String
class or string concatenation (with
or without the class). The use of strings requires dynamic memory allocation,
which can fragment the available memory. Instead, try to use functions like
snprintf()
with one large format string.