Network Find#

Callbacks for Network Find Component.

Callbacks#

void

Finish forming or joining process.

int8_t

Get radio power for a channel.

bool
sl_zigbee_af_network_find_join_cb(sl_zigbee_zigbee_network_t *networkFound, uint8_t lqi, int8_t rssi)

Join a network.

int8_t

Get the energy threshold for a channel.

bool

Callbacks Documentation#

sl_zigbee_af_network_find_finished_cb#

void sl_zigbee_af_network_find_finished_cb (sl_status_t status)

Finish forming or joining process.

Parameters
TypeDirectionArgument NameDescription
sl_status_tN/Astatus

Ver.: always

This callback is fired when the network-find plugin is finished with the forming or joining process. The result of the operation will be returned in the status parameter.


sl_zigbee_af_network_find_get_radio_power_for_channel_cb#

int8_t sl_zigbee_af_network_find_get_radio_power_for_channel_cb (uint8_t pgChan)

Get radio power for a channel.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/ApgChan

Ver.: always

This callback is called by the framework when it is setting the radio power during the discovery process. The framework will set the radio power depending on what is returned by this callback.


sl_zigbee_af_network_find_join_cb#

bool sl_zigbee_af_network_find_join_cb (sl_zigbee_zigbee_network_t * networkFound, uint8_t lqi, int8_t rssi)

Join a network.

Parameters
TypeDirectionArgument NameDescription
sl_zigbee_zigbee_network_t *N/AnetworkFound

Ver.: always

uint8_tN/Alqi

Ver.: always

int8_tN/Arssi

Ver.: always

This callback is called by the plugin when a joinable network has been found. If the application returns true, the plugin will attempt to join the network. Otherwise, the plugin will ignore the network and continue searching. Applications can use this callback to implement a network blacklist.


sl_zigbee_af_network_find_get_energy_threshold_for_channel_cb#

int8_t sl_zigbee_af_network_find_get_energy_threshold_for_channel_cb (uint8_t pgChan)

Get the energy threshold for a channel.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/ApgChan

Ver.: always

This callback is called during the energy scan when forming the network. Should the energy level exceed the value returned by this callback, the current channel will not be considered a suitable candidate for forming. Should none of the channels in the channel mask be considered suitable, the scan will fall back on all channels, including those not on the channel mask. The return value is RSSI, in dBm. This callback is called only when the fallback functionality is enabled.


sl_zigbee_af_network_find_get_enable_scanning_all_channels_cb#

bool sl_zigbee_af_network_find_get_enable_scanning_all_channels_cb (void )

Get enable scanning all channels.

Parameters
TypeDirectionArgument NameDescription
voidN/A

Returns true is the fallback on scanning all channels is enabled, false if not.