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.

ZDP_MgmtLeaveReq 问题

Other Parts Discussed in Thread: Z-STACK

z-stack 2.5

问题:使用ZDP_MgmtLeaveReq该函数后路由节点无法退出网络

描述如下:

网络由协调器、路由1、路由2组成

路由1连接协调器、路由2连接路由1

使用该函数后,路由2无法断开路由1

路由节点未使用NV_RESTORE

退网代码如下:

zAddrType_t leaveid;

uint8 *extaddr;

extaddr=pNwkAddrRsp->extAddr;

leaveid.addrMode=(afAddrMode_t) Addr16Bit;

leaveid.addr.shortAddr=pNwkAddrRsp->nwkAddr;

ZDP_MgmtLeaveReq(&leaveid,extaddr,1,0,0);

AssocRemove(pNwkAddrRsp->extAddr);
ZDApp_NVUpdate();