Runtime Environment Variables

Hi, looking for advice about how to pass values to the Particle runtime via the Cloud as is done with environment variables in other devices. This is key to deploying fleets of devices, each with same firmware but with device-specific keys, ID codes, locations, etc. Using this technique I can avoid having unique code for each device. Is "particle.variable()" the recommended method to use?

@drewcact look at Ledger which is designed exactly for your purpose.

1 Like

I'll give Ledger a try. I am able to easily set the variables in the Console, but hunting through the docs to see how to access from the device code.