微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > Error: identifier "ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP" is undefined

Error: identifier "ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP" is undefined

时间:10-02 整理:3721RD 点击:

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 文件 中定义了宏

我用的是ZStack-CC2530-2.3.0-1.4.0

我重新下载了ZStack-CC2530-2.5.1a,里面的ZcomDef.h 文件 中定义了宏。

你用的协议栈版本太老了,这个宏定义应该是你后来的协议栈里面才有的。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top