Dear Support Team,
Based on nrf5 sdk for zigbee 4.1, nrf52840dk, do the following tests: 1. Modify the \examples\zigbee\light_control\light_switch example, that is, add button 1 to leave network, button 2 to join network, button 3 to directly erase nvram, and button 4 to soft restart.
2. Compile the example and download to 52840-Dk.
3. The device presses button2 to join network.
4. The device presses button4 to invoke a soft restart, and sees the device rejoin.
5. The device presses button1 leave network.
Phenomenon: The device does not leave the network and no abnormal error is displayed. Please help to analyze and solve it.
The following is the light_switch program, which modifies main.c and zigbee_helpers.c.