#if ( STACK_PROFILE_ID == ZIGBEEPRO_PROFILE )
uint8 CskipRtrs[1] = {0};
uint8 CskipChldrn[1] = {0};
数组定义全部是0,节点最大子节点数目是多少呢?
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.
#if ( STACK_PROFILE_ID == ZIGBEEPRO_PROFILE )
uint8 CskipRtrs[1] = {0};
uint8 CskipChldrn[1] = {0};
数组定义全部是0,节点最大子节点数目是多少呢?
#if !defined( NWK_MAX_DEVICE_LIST )
#define NWK_MAX_DEVICE_LIST 20 // Maximum number of devices in the
// Assoc/Device list.
#endif
// Don't change this value to set the number of devices. Change
// NWK_MAX_DEVICE_LIST above
#define NWK_MAX_DEVICES ( NWK_MAX_DEVICE_LIST + 1 ) // One extra space for parent
#define NWK_MAX_ROUTERS
我做了试验:设置网络深度为1,协调器可以有超过9个路由器节点;但是上面宏定义是6
据了解,新协议栈已经去掉了NWK_MAX_ROUTERS的要求,只与NWK_MAX_DEVICE有关,你可以试试
NWK_MAX_ROUTERS你是定义这个为1吗?还是NWK_MAX_DEVICE_LIST 这定义为6?假如协调器是A,其余是B,C等。你的网络拓扑是A下面是B,C等,还是A->B->C->等呢?
拓扑结构是a->b->c... 已经解决 确实和max_router这个宏无关