TI中文支持网
TI专业的中文技术问题搜集分享网站

Error[Pe020]: identifier "ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP" is undefined

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

但是没有找到它的宏定义

jiangfeng liu:

已经找到原因所在

我使用的是ZStack-CC2530-2.3.0-1.4.0

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

jiangfeng liu:

我用的是ZStack-CC2530-2.3.0-1.4.0

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

VV:

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

赞(0)
未经允许不得转载:TI中文支持网 » Error[Pe020]: identifier "ZCD_NV_ROUTER_OFF_ASSOC_CLEANUP" is undefined
分享到: 更多 (0)