zigbee菜鸟问各位大大上面这句在哪里设置啊
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.
请看下文详解:
In case a ZigBee Router gets off network for a long period of time, its children will try to join an alternative parent. When the router is back online, the children will still appear in its child table, preventing proper routing of egress traffic to them.
In order to avoid this, it is recommended that routers prone to get off and on the network will have zgRouterOffAssocCleanup flag set to TRUE (mapped to NV item: ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP):
uint8 cleanupChildTable = TRUE;
zgSetItem( ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP, sizeof(cleanupChildTable),
&cleanupChildTable );
When enabled, deprecated end-device entries will be removed from the child table if traffic received from them was routed by another parent.
大大 你好
uint8 cleanupChildTable = TRUE; zgSetItem( ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP, sizeof(cleanupChildTable), &cleanupChildTable );
我在SampleApp.c文件里面的void SampleApp_Init( uint8 task_id )加入这句话,但是报错
Error[Pe020]: identifier "ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP" is undefined ,然后我在IAR->Edit->Find and Replace->Find in Files查找ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP
但是没有找到它的宏定义