Quantcast
Channel: Zigbee 和 Thread
Viewing all articles
Browse latest Browse all 16978

帖子: RE: 如何获取自己下面挂了多少个设备

$
0
0

在 AssocList.h 文件中有对关联表结构 associated_devices_t 的定义,代码如下: 
typedef struct 


UINT16 shortAddr; 
uint16 addrIdx; 
byte nodeRelation; 
byte devStatus; 
byte assocCnt; 
linkInfo_t linkInfo; 
} associated_devices_t; 

关联表记录的查看 可以直接从 AssociatedDevList[NWK_MAX_DEVICES]数组中查看关联设备的信息,比如: 
for (uint8 x=0;x<NWK_MAX_DEVICES;x++) 

byte nr = AssociatedDevList[x].nodeRelation; 
… 


Viewing all articles
Browse latest Browse all 16978