End Device Support#

Callbacks for End Device Support Component.

Callbacks#

void

Poll is completed.

Callbacks Documentation#

sl_zigbee_af_end_device_support_poll_completed_cb#

void sl_zigbee_af_end_device_support_poll_completed_cb (sl_status_t status)

Poll is completed.

Parameters
TypeDirectionArgument NameDescription
sl_status_t[out]status

Return status of a completed poll operation Ver.: always

This function is called by the End Device Support plugin after a poll is completed.


sl_zigbee_af_end_device_support_lost_parent_connectivity_cb#

bool sl_zigbee_af_end_device_support_lost_parent_connectivity_cb (void )

Parent connectivity is lost.

Parameters
TypeDirectionArgument NameDescription
voidN/A

This function is called by the End Device Support plugin when the end device can't connect to its parent. This callback is called under the following conditions:

  • When the network state of the device is SL_ZIGBEE_JOINED_NETWORK_NO_PARENT.

  • If there are 3 or more data poll transaction failures for an end device.

Users can consume this callback and return either true or false depending on desired behavior.

Returns

  • Type boolean value:

    • True: End Device Support Plugin will Not Send Trust Center Rejoin

    • False: End Device Support Plugin will send Trust Center Rejoin


sl_zigbee_af_end_device_support_pre_network_move_cb#

bool sl_zigbee_af_end_device_support_pre_network_move_cb (void )

Pre network move.

Parameters
TypeDirectionArgument NameDescription
voidN/A

This function is called by the End Device Support plugin just before it issues a network move, or a sequence of a secure rejoin followed by several trust center rejoins. Various plugins issue a network move when certain conditions are met, such as when the network state is EMBER_JOINED_NO_PARENT.

Users can consume this callback and return true to prevent the End Device Support plugin from issuing rejoin requests. Consuming the callback also gives the application a chance to implement its own rejoin logic. If this callback returns false, the End Device Support plugin will issue network rejoins as usual.

Returns

  • Type boolean value:

    • True: Prevent the End Device Support Plugin to issue Rejoin Request

    • False: Allow End Device Support Plugin to issue Rejoin Request