协调器清关联表
zigbee菜鸟问各位大大上面这句在哪里设置啊
请看下文详解:
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
但是没有找到它的宏定义
我用的是ZStack-CC2530-2.3.0-1.4.0
您说的确实没错,我重新下载了ZStack-CC2530-2.5.1a,里面的ZcomDef.h 文件 中定义了宏。
所以现在我只能手动是清除关联表是吗?
您有更好的建议吗?