This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello everyone. I am Michael,
Here is a question about how the end-device to leave the nwk and panid which be saved by NV_RESTORE.
If the end-device is connecting with a coordinator, I can use the NLME_LeaveReq to leave the nwk and panid, so it has no problem for the case in connecting.
But the end-device out of the coordinator which is connected with it, the end-device will try to join a coordinator. In NV_RESTORE, the end-device can only join the original coordinator. So how can I do for leaving the nwk and panid in this situation?
The command of NLME_LeaveReq cannot be used because it must send leave message to the original coordinator. How can I overcome this restriction, or there is other method can let the end-device to leave the nwk and panid in this situation?
Thanks for reading my question. Please give me some help and advising.
Thanks a lot.
You can refer to ZDAppCheckForHoldKey in ZDApp_Init(). In ZStack examples, the ZED will clean up NV and start to find a new network if use holds the button and power on device.
Hi. YiKai ,
Thanks for your advice, I will try to use ZDAppCheckForHoldKey in my code, I will reply the result if I success or still have problem.
Thanks again.
Best regards.