Zigbee Protocol Controller 1.6.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...
 

Detailed Description

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.

Macro Definition Documentation

◆ DATASTORE_MQTT_CLIENT_ID_KEY

#define DATASTORE_MQTT_CLIENT_ID_KEY   "mqtt_client_client_id"

Function Documentation

◆ mqtt_client_id_get_from_config()

const char * mqtt_client_id_get_from_config ( )

Reads the configuration and determines which MQTT Client ID we should use.

Returns
const char* C-String for the Client ID to use.

◆ mqtt_client_store_client_id_to_datastore()

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.

Parameters
client_id_in_useCurrent MQTT Client ID used for the broker.