又有问题了。还望大神们帮帮忙!!
协议栈:mesh1.0
终端退网的时候向协调器发出了LEAVE.
可是协调器为什么会回一个LEAVE呢。
抓包数据如下:
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.
嗯嗯,我去看看。我退网写在一个函数里调用,有关代码是这样的:
HalUARTWrite(MT_UART_DEFAULT_PORT,"SUCCESS_LEAVE\n",14);//打印PC
NLME_LeaveReq_t LeaveReq;
LeaveReq.extAddr = NULL;
LeaveReq.removeChildren =FALSE;
LeaveReq.rejoin = FALSE;
LeaveReq.silent = FALSE;
NLME_LeaveReq(&LeaveReq);
zgWriteStartupOptions(ZG_STARTUP_SET, (ZCD_STARTOPT_DEFAULT_NETWORK_STATE | ZCD_STARTOPT_DEFAULT_CONFIG_STATE) );//清楚网络信息,为了可以加入新的协调器
osal_start_timerEx( GenericApp_TaskID,GENERICAPP_SYS_RESET_EVT,300);//复位