Zigbee Protocol Controller 1.6.0
zigpc_ucl::node_state Namespace Reference

Functions

sl_status_t publish_state (zigbee_eui64_uint_t eui64, zigbee_node_network_status_t network_status, uint32_t max_cmd_delay)
 Update the device status with the parameters provided. This handler will publish the updated device state on MQTT. More...
 
sl_status_t remove_node_topics (zigbee_eui64_uint_t eui64)
 Unretain all topic for a particular device. More...
 
void cleanup_all_node_topics (void)
 Unretain all node topics except the node state topic. More...
 

Function Documentation

◆ cleanup_all_node_topics()

void zigpc_ucl::node_state::cleanup_all_node_topics ( void  )

Unretain all node topics except the node state topic.

NOTE: This function should only be run on shutdown.

◆ publish_state()

sl_status_t zigpc_ucl::node_state::publish_state ( zigbee_eui64_uint_t  eui64,
zigbee_node_network_status_t  network_status,
uint32_t  max_cmd_delay 
)

Update the device status with the parameters provided. This handler will publish the updated device state on MQTT.

Parameters
eui64Device identifier.
network_statusDevice network status.
max_cmd_delayDevice maximum command delay.
Returns
sl_status_t SL_STATUS_OK on success, or MQTT API error otherwise.

◆ remove_node_topics()

sl_status_t zigpc_ucl::node_state::remove_node_topics ( zigbee_eui64_uint_t  eui64)

Unretain all topic for a particular device.

Parameters
eui64Device identifier.
Returns
sl_status_t SL_STATUS_OK on success, or MQTT API error otherwise.