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.

zstack2.5喂狗超时时间设置

给出WDT_IN_PM1定义,使能

#ifdef WDT_IN_PM1
/* If WDT is used, this is a good place to enable it. */
WatchDogEnable( WDTIMX );
#endif

然后自己在GenericApp_ProcessEvent的第一句喂狗

feetWatchDog();

自己封装了这两句成一个函数

void feetWatchDog()
{
WDCTL = 0XA0;
WDCTL = 0X50;
}

不知道协议栈里有没有喂狗函数呢?

如上面的做法,在协调器节点上是没问题的,但是在路由器节点上就不行了,路由器节点还没入网成功,或是还没跑到喂狗函数,就已经喂狗超时了

如何调整喂狗超时时间?