Zigbee Protocol Controller 1.6.0
zigpc_binding_mqtt_helpers.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 *****************************************************************************/
21#ifndef ZIGPC_BINDING_MQTT_HELPERS_H
22#define ZIGPC_BINDING_MQTT_HELPERS_H
23
24#include <string>
25#include "sl_status.h"
26#include "zigpc_common_zigbee.h"
27#include "uic_mqtt.h"
28
29//Information used to interact with the "Binding" cluster
30//representation used in the binding component
31const std::string BINDING_CLUSTER_NAME = "/Binding" ;
32const std::string BINDING_TABLE_TOPIC = "/BindingTable" ;
33const std::string BINDING_TABLE_FULL_TOPIC = "/BindingTableFull" ;
34const std::string BINDABLE_CLUSTERS_TOPIC = "/BindableClusterList" ;
35
36#ifdef __cplusplus
37extern "C" {
38#endif
52 zigbee_endpoint_id_t endpoint,
54
55
69 zigbee_endpoint_id_t endpoint,
71
83 zigbee_endpoint_id_t endpoint);
84
85
97 zigbee_endpoint_id_t endpoint);
98
99#ifdef __cplusplus
100}
101#endif
102#endif //ZIGPC_BINDING_MQTT_HELPERS_H
void(* mqtt_message_callback_t)(const char *topic, const char *message, const size_t message_length)
A callback type for pushing incoming messages.
Definition: uic_mqtt.h:60
uint32_t sl_status_t
Definition: sl_status.h:139
uint64_t zigbee_eui64_uint_t
Zigbee Device Identifier (stored as integer)
Definition: zigpc_common_zigbee.h:199
uint8_t zigbee_endpoint_id_t
A representation of the endpoint id used on the Zigbee protocol.
Definition: zigpc_common_zigbee.h:248
SL Status Codes.
const std::string BINDING_CLUSTER_NAME
Definition: zigpc_binding_mqtt_helpers.h:31
sl_status_t zigpc_binding_mqtt_pub_supported(zigbee_eui64_uint_t eui64, zigbee_endpoint_id_t endpoint)
zigpc_binding_mqtt_pub_supported - Publish to the MQTT topic for reporting Supported commands for the...
sl_status_t zigpc_binding_mqtt_pub_generated(zigbee_eui64_uint_t eui64, zigbee_endpoint_id_t endpoint)
zigpc_binding_mqtt_pub_generated - Publish to the MQTT topic for reporting Generated commands for the...
const std::string BINDABLE_CLUSTERS_TOPIC
Definition: zigpc_binding_mqtt_helpers.h:34
sl_status_t zigpc_binding_mqtt_sub_unbind(zigbee_eui64_uint_t eui64, zigbee_endpoint_id_t endpoint, mqtt_message_callback_t callback)
zigpc_binding_mqtt_sub_unbind - Subscribe to the MQTT topic for issuing "Unbinding" commands
sl_status_t zigpc_binding_mqtt_sub_bind(zigbee_eui64_uint_t eui64, zigbee_endpoint_id_t endpoint, mqtt_message_callback_t callback)
zigpc_binding_mqtt_sub_bind - Subscribe to the MQTT topic for issuing "Binding" commands
const std::string BINDING_TABLE_TOPIC
Definition: zigpc_binding_mqtt_helpers.h:32
const std::string BINDING_TABLE_FULL_TOPIC
Definition: zigpc_binding_mqtt_helpers.h:33