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.

初学zigbee 。看到例程里面有个basicRfCfg_t 结构体。是BASICRF里面的。结构体内容如下。

typedef struct {
uint16 myAddr; //16位的短地址
uint16 panId; //节点的PAN ID
uint8 channel; //RF通道(必须在11-26之间)
uint8 ackRequest; //目标确认为true
#ifdef SECURITY_CCM //是否加密,预定义里取消了加密
uint8* securityKey;
uint8* securityNonce;
#endif
} basicRfCfg_t;

我想问下的问题是。 它里面的myAddr,panId,channel。是可以随便设置的吗?程序里面是定义这样。

#define PAN_ID 0x2007
#define SWITCH_ADDR 0x2520
#define LIGHT_ADDR 0xBEEF

如果我要改要根据什么设置呢?刚学,求大哥,大姐们帮帮,小弟。