Sub GHz Client#
API and Callbacks for the Sub GHz Cluster Client Component.
The Smart Energy Sub-GHz client suspends the transmission of any ZCL messages for a given period when instructed so by the Sub-GHz server.
Modules#
API#
Send the 'Get Suspend ZCL Messages Status' command.
Send a request to change the channel to the server by Mgmt_NWK_Unsolicited_Enhanced_Update_notify command.
Return the current suspend status.
Ignore the SuspendZclMessages command.
API Documentation#
sl_zigbee_af_sub_ghz_client_send_get_suspend_zcl_messages_status_command#
sl_status_t sl_zigbee_af_sub_ghz_client_send_get_suspend_zcl_messages_status_command (sl_802154_short_addr_t nodeId, uint8_t endpoint)
Send the 'Get Suspend ZCL Messages Status' command.
N/A | nodeId | The server's node ID. |
N/A | endpoint | The server's endpoint. |
This is a client command. The client sends it to determine the current status of its ZCL communications from the server.
48
of file app/framework/plugin/sub-ghz-client/sub-ghz-client.h
sl_zigbee_af_sub_ghz_client_send_unsolicited_enhanced_update_notify#
sl_status_t sl_zigbee_af_sub_ghz_client_send_unsolicited_enhanced_update_notify (sl_802154_short_addr_t destination, uint8_t channelPage, uint8_t channel, uint16_t macTxUcastTotal, uint16_t macTxUcastFailures, uint16_t macTxUcastRetries, uint8_t period)
Send a request to change the channel to the server by Mgmt_NWK_Unsolicited_Enhanced_Update_notify command.
N/A | destination | ........ the Sub-GHz server's node ID |
N/A | channelPage | ........ current channel page |
N/A | channel | ............ current channel
|
N/A | macTxUcastTotal | .... total number of Mac TX transaction attempts |
N/A | macTxUcastFailures | . total number of Mac TX transaction failures |
N/A | macTxUcastRetries | .. total number of Mac TX transaction retries |
N/A | period | ............. time in minutes over which macTxUcastXxx were measured |
Returns
An sl_status_t value.
SL_STATUS_INVALID_PARAMETER if the channel page or channel are not in the valid range
70
of file app/framework/plugin/sub-ghz-client/sub-ghz-client.h
sl_zigbee_af_sub_ghz_client_is_sending_zcl_messages_suspended#
bool sl_zigbee_af_sub_ghz_client_is_sending_zcl_messages_suspended ()
Return the current suspend status.
Returns
True if called within a suspend period, false otherwise.
82
of file app/framework/plugin/sub-ghz-client/sub-ghz-client.h
sl_zigbee_af_sub_ghz_client_ignore_suspend_zcl_messages_command#
void sl_zigbee_af_sub_ghz_client_ignore_suspend_zcl_messages_command (bool ignore)
Ignore the SuspendZclMessages command.
N/A | ignore | True to ignore, false to switch back to normal behavior. |
When the client receives the SuspendZclMessages command, it suspends sending any ZCL messages for a given time. This function allows the client to ignore the command and continue sending messages even when suspended.
NOTE: For testing only. Ignoring the SuspendZclMessages command in production is non-compliant.
95
of file app/framework/plugin/sub-ghz-client/sub-ghz-client.h