Zigbee Protocol Controller 1.6.0
mqtt_client_id.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
26#ifndef MQTT_CLIENT_ID_H
27#define MQTT_CLIENT_ID_H
28
29// Key used to store/fetch the MQTT Client ID used by the application.
30#define DATASTORE_MQTT_CLIENT_ID_KEY "mqtt_client_client_id"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
42
52void mqtt_client_store_client_id_to_datastore(const char *client_id_in_use);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif //MQTT_CLIENT_ID_H
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 appli...