Network Steering#

Callbacks for Network Steering Component.

Callbacks#

void
sl_zigbee_af_network_steering_complete_cb(sl_status_t status, uint8_t totalBeacons, uint8_t joinAttempts, uint8_t finalState)

Complete network steering.

int8_t

Get power for a radio channel.

bool

Get the distributed key.

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.

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.

Parameters
N/Astatus

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/AtotalBeacons

The total number of 802.15.4 beacons that were heard, including beacons from different devices with the same PAN ID. Ver.: always

N/AjoinAttempts

The number of join attempts that were made to get onto an open Zigbee network. Ver.: always

N/AfinalState

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.


Definition at line 216 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.

Parameters
N/Achannel

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.


Definition at line 230 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.

Parameters
N/Akey

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


Definition at line 242 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.

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.


Definition at line 254 of file app/framework/plugin/network-steering/network-steering.h