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.

Z-Stack如何手动联网、断网

Other Parts Discussed in Thread: Z-STACK

终端设备一般情况下处于定时器睡眠状态。

每一分钟扫描一次网络,

如果发现网络,就连接网络。

如果发现网络断了,判断设备状态。

一定时间断网。

想知道连网与断网的API函数。

原来我使用ZDApp_StartJoiningCycle();和ZDApp_StopJoiningCycle();控制

当时使用ZDApp_StartJoiningCycle();是将联网的控制权交给Z-Stack,

我希望联网的时间是可控的,所以最好是判断网络状态后,再交权限。

后来用NLME_NwkDiscReq2(),在回调函数中,使用 ZDApp_StartJoiningCycle();打开网络轮询,反而,不同的查询状态。

求教各位朋友给个解决的方案。十分感谢!!!!!