Remote Configuration of Notecards?

Is there a way to configure the notecards without having to physically connect them to a device? I understand there are environment variables which would be good for small changes but what if I wanted to change a device from minimal connection mode to continuous while the device is deployed in a production environment.

Hey @aaltieri,

And welcome to the Blues community!

We offer a handful of reserved environment variables you can use for common configuration scenarios. Those are listed here: Understanding Environment Variables - Blues Developers.

For example if you want to change a Notecard from mode: periodic to mode: continuous, you could set a device’s _sync_continuous environment variable to 1 and wait for the next inbound sync.

We don’t offer overrides for all configuration by design to keep the complexity to a minimum (there are a lot of things you can configure on a Notecard).

If you have some Notecard configuration you want to control remotely that is not covered by a reserved environment variable, our recommendation is to:

  1. Create a custom environment variable.
  2. Have your firmware look for environment variable updates with the env.get request.
  3. Have your firmware apply any detected updates using the appropriate Notecard request.

Let me know if you have any other questions.

Thanks,
TJ VanToll

2 Likes

Ok, thank you, I will look into those options further.