|
Unify Framework Lib 1.7.0
|
Generates and provide a Client ID for the application/machine. More...
Macros | |
| #define | DATASTORE_MQTT_CLIENT_ID_KEY "mqtt_client_client_id" |
Functions | |
| const char * | mqtt_client_id_get_from_config () |
| Reads the configuration and determines which MQTT Client ID we should use. More... | |
| void | mqtt_client_store_client_id_to_datastore (const char *client_id_in_use) |
| Stores the MQTT Client ID we used in the datastore, if any datastore is active with the current application. More... | |
Generates and provide a Client ID for the application/machine.
This component provide an MQTT Client ID for each application that will be deterministic (i.e. identical on reboot) and unique to each application /machine.
| #define DATASTORE_MQTT_CLIENT_ID_KEY "mqtt_client_client_id" |
| const char * mqtt_client_id_get_from_config | ( | ) |
Reads the configuration and determines which MQTT Client ID we should use.
| void mqtt_client_store_client_id_to_datastore | ( | const char * | client_id_in_use | ) |
Stores the MQTT Client ID we used in the datastore, if any datastore is active with the current application.
This function will emit an error message if a different MQTT Client ID was stored in the database before.
| client_id_in_use | Current MQTT Client ID used for the broker. |