I created a library and examples for using Device Notes from a Particle device. It uses a combination of a library and a webhook (or two).
There are two common uses for it:
-
Storing configuration data on the cloud so all devices can have the same user firmware, and get their configuration from the cloud.
-
Storing small amounts of data from the device in the Device Notes field. While Particle.publish and Particle.variable are a more common way to get data from a device, Device Notes is an interesting technique if you don’t have an server to receive publishes and especially if the device is mostly offline.
It also shows how to use JsonParserGeneratorRK to manage JSON data, including both parsing and updating JSON data in place. This allows you to store multiple structured data values in the Device Notes field.