Parameters in Development

The application parameters allow to add some flexibility to your application. Each application can define its own parameters.

Define parameters

In a development environment, application parameters are defined in a JSON file that you can load with the utility method HubClient::loadApplicationParameters in your application code in C++.

{
  "led_status": true
}

This workflow of setting application parameters from a local file is for development purposes only. For a deployed application, application parameters are stored and configurable directly on the cloud, so there is no need to load this additional configuration file.

For an example on how to use application parameters in development, you can refer to this tutorial.

Modify the parameters value

You should be able to change the value of an application parameter directly in the linked JSON.

In order to update and use updated values, you need to create and register callback function(s) to detect application parameters changes and retrieve the new values with the HubClient::getParameter method in your application.

For an example on how to use application parameters callback functions, you can refer to this tutorial.