Zigbee Protocol Controller 1.6.0
zigpc_binding_mqtt_helpers.h File Reference
#include <string>
#include "sl_status.h"
#include "zigpc_common_zigbee.h"
#include "uic_mqtt.h"

Go to the source code of this file.

Functions

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 More...
 
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 More...
 
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 "Binding" cluster More...
 
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 "Binding" cluster More...
 

Variables

const std::string BINDING_CLUSTER_NAME = "/Binding"
 
const std::string BINDING_TABLE_TOPIC = "/BindingTable"
 
const std::string BINDING_TABLE_FULL_TOPIC = "/BindingTableFull"
 
const std::string BINDABLE_CLUSTERS_TOPIC = "/BindableClusterList"
 

Function Documentation

◆ zigpc_binding_mqtt_pub_generated()

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 "Binding" cluster

Parameters
eui64- the address of the node
endpoint- the endpoint id where the bindings will be initiated
Returns
SL_STATUS_OK if the MQTT message could be successfully sent

◆ zigpc_binding_mqtt_pub_supported()

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 "Binding" cluster

Parameters
eui64- the address of the node
endpoint- the endpoint id where the bindings will be initiated
Returns
SL_STATUS_OK if the MQTT message could be successfully sent

◆ zigpc_binding_mqtt_sub_bind()

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

Parameters
eui64- the address of the node
endpoint- the endpoint id where the bindings will be initiated
callback- the callback function that should be called when MQTT message for "Binding" is received
Returns
SL_STATUS_OK if the MQTT callback could be successfully set up

◆ zigpc_binding_mqtt_sub_unbind()

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

Parameters
eui64- the address of the node
endpoint- the endpoint id where the bindings will be initiated
callback- the callback function that should be called when MQTT message for "Unbinding" is received
Returns
SL_STATUS_OK if the MQTT callback could be successfully set up

Variable Documentation

◆ BINDABLE_CLUSTERS_TOPIC

const std::string BINDABLE_CLUSTERS_TOPIC = "/BindableClusterList"

◆ BINDING_CLUSTER_NAME

const std::string BINDING_CLUSTER_NAME = "/Binding"

◆ BINDING_TABLE_FULL_TOPIC

const std::string BINDING_TABLE_FULL_TOPIC = "/BindingTableFull"

◆ BINDING_TABLE_TOPIC

const std::string BINDING_TABLE_TOPIC = "/BindingTable"