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.

CC2630入网后,设备断电,再次上电后,网络不恢复



请问:

在应用中采用Uart命令方式入网,当设备断电后,再次上电的时,设备不会恢复到原来的网络中?

1、入网函数:

zstack_devStartReq_t startReq = {0};
startReq.startDelay = 0;
(void)Zstackapi_DevStartReq(SampleEntity, &startReq);

2、添加宏定义:NV_RESTORE

3、需要在该函数static bool processDevStartReq( ICall_EntityID srcEntityID, void *pMsg )中修改什么吗?

uint8 ZDOInitDevice( uint16 startDelay )中的networkStateNV = ZDO_INITDEV_NEW_NETWORK_STATE;

造成的吗?