Network Steering#
Callbacks for Network Steering Component.
Callbacks#
Complete network steering.
Get power for a radio channel.
Get the distributed key.
Get the node type.
Callbacks Documentation#
sl_zigbee_af_network_steering_complete_cb#
void sl_zigbee_af_network_steering_complete_cb (sl_status_t status, uint8_t totalBeacons, uint8_t joinAttempts, uint8_t finalState)
Complete network steering.
N/A | status | On success this will be set to SL_STATUS_OK to indicate a network was joined successfully. On failure this will be the status code of the last join or scan attempt. Ver.: always |
N/A | totalBeacons | The total number of 802.15.4 beacons that were heard, including beacons from different devices with the same PAN ID. Ver.: always |
N/A | joinAttempts | The number of join attempts that were made to get onto an open Zigbee network. Ver.: always |
N/A | finalState | The finishing state of the network steering process. From this, one is able to tell on which channel mask and with which key the process was complete. Ver.: always |
This callback is fired when the Network Steering plugin is complete.
221
of file app/framework/plugin/network-steering/network-steering.h
sl_zigbee_af_network_steering_get_power_for_radio_channel_cb#
int8_t sl_zigbee_af_network_steering_get_power_for_radio_channel_cb (uint8_t channel)
Get power for a radio channel.
N/A | channel | The channel that the plugin is inquiring about the power level. Ver.: always |
This callback is fired when the Network Steering plugin needs to set the power level. The application has the ability to change the max power level used for this particular channel.
235
of file app/framework/plugin/network-steering/network-steering.h
sl_zigbee_af_network_steering_get_distributed_key_cb#
bool sl_zigbee_af_network_steering_get_distributed_key_cb (sl_zigbee_key_data_t * key)
Get the distributed key.
N/A | key | to the distributed key struct |
This callback is fired when the Network Steering plugin needs to set the distributed key. The application set the distributed key from Zigbee Alliance through this callback or the network steering will use the default test key.
Returns
true if the key is loaded successfully, otherwise false. level. Ver.: always
247
of file app/framework/plugin/network-steering/network-steering.h
sl_zigbee_af_network_steering_get_node_type_cb#
sl_zigbee_node_type_t sl_zigbee_af_network_steering_get_node_type_cb (sl_zigbee_af_plugin_network_steering_joining_state_t state)
Get the node type.
N/A | state | The current sl_zigbee_af_plugin_network_steering_joining_state_t. |
This callback allows the application to set the node type that the network steering process will use in joining a network.
Returns
An ::sl_zigbee_node_type_t value that the network steering process will try to join a network as.
259
of file app/framework/plugin/network-steering/network-steering.h