Zigbee Protocol Controller 1.6.0
zigpc_binding_request.h File Reference
#include "sl_status.h"
#include "zigpc_common_zigbee.h"

Go to the source code of this file.

Functions

void zigpc_binding_parse_bind_cmd (const char *topic, const char *message, const size_t message_length)
 zigpc_binding_parse_bind_cmd - parse an MQTT message into a zigbee ZDO bind command More...
 
void zigpc_binding_parse_unbind_cmd (const char *topic, const char *message, const size_t message_length)
 zigpc_binding_parse_unbind_cmd - parse an MQTT message into a zigbee ZDO unbind command More...
 
sl_status_t zigpc_binding_parse_cmd_args (const char *topic, const char *message, const size_t message_length, zigbee_binding_t *binding)
 zigpc_binding_parse_cmd_args - "Binding" and "Unbinding" commands are very similar. This function extracts the zigbee_binding_t directly from MQTT information to be used in either of the above commands More...
 

Function Documentation

◆ zigpc_binding_parse_bind_cmd()

void zigpc_binding_parse_bind_cmd ( const char *  topic,
const char *  message,
const size_t  message_length 
)

zigpc_binding_parse_bind_cmd - parse an MQTT message into a zigbee ZDO bind command

Parameters
topic- the MQTT topic containing node, endpoint and the "Binding" command
message- the MQTT payload containing the destination node/endpoint/cluster combination
message_length- the length of the MQTT payload

◆ zigpc_binding_parse_cmd_args()

sl_status_t zigpc_binding_parse_cmd_args ( const char *  topic,
const char *  message,
const size_t  message_length,
zigbee_binding_t binding 
)

zigpc_binding_parse_cmd_args - "Binding" and "Unbinding" commands are very similar. This function extracts the zigbee_binding_t directly from MQTT information to be used in either of the above commands

Parameters
topic- the MQTT topic containing node, endpoint and the "Unbinding" command
message- the MQTT payload containing the destination node/endpoint/cluster combination
message_length- the length of the MQTT payload
binding- the destination where to put all "binding" information
Returns
SL_STATUS_OK if the MQTT message could be successfully parsed

◆ zigpc_binding_parse_unbind_cmd()

void zigpc_binding_parse_unbind_cmd ( const char *  topic,
const char *  message,
const size_t  message_length 
)

zigpc_binding_parse_unbind_cmd - parse an MQTT message into a zigbee ZDO unbind command

Parameters
topic- the MQTT topic containing node, endpoint and the "Unbinding" command
message- the MQTT payload containing the destination node/endpoint/cluster combination
message_length- the length of the MQTT payload