请问associated_devices_t *AssocAddNew( uint16 shortAddr, byte *extAddr, byte nodeRelation );中nodeRelation怎么得到???
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.
nodeRelation 可选值如下:
// Node Relations
#define PARENT 0//父节点 一般指协调器
#define CHILD_RFD 1//简功能节点 一般指终端
#define CHILD_RFD_RX_IDLE 2//简功能节点(空闭进 RF 接收开启) 一般指终端
#define CHILD_FFD 3//全功能节点 一般指路由器
#define CHILD_FFD_RX_IDLE 4//全功能节点(空闭进 RF 接收开启) 一般指路由器
#define NEIGHBOR 5//邻居设备
#define OTHER 6//其它设备
#define NOTUSED 0xFF //没有使用