This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[ZIGBEE] Leave network from End Device

Hello,

I am trying to reset the Zigbee network configuration on my End Device when the user press on a reset button for a long time.

I don't want to restart the product and erase the Zigbee persistent storage (using zigbee_erase_persistent_storage available in zigbee_helpers.c for example).

From what I understand, the best way to achieve this would be to call zb_bdb_reset_via_local_action(0) but this function does not return and the program finally end up being reset by the watchdog. I pushed the watchdog to 10 seconds but it doesn't help.

I took a look at https://devzone.nordicsemi.com/f/nordic-q-a/62157/how-to-leave-a-zigbee-network-and-erase-all-network-data-then-join-another/296064#296064, but it doesn't help.

Some more info: nRF5 SDK for Zigbee v4.1, nRF52840, multiprotocol: BLE+Zigbee.

Best,

Related