Is there a compile time mechanism to get device id or serial number?

Following what @ScruffR & @armor said, here is some more info about "Device Notes" which might be handy:

You might try looking at the library "CloudConfigRK":

https://community.particle.io/t/cloudconfigrk-library-to-store-configuration-settings-locally-with-the-ability-to-set-from-the-cloud/59560

To start, you could implement something like the "devicenotes.cpp" library example. Here is a string you might use in the console for a particular device:

which includes one key and a setting to publish a daily report. (Oops, please ignore the partial highlighting of the JSON string. :blush:)

1 Like