SampleApp_Addr.addrMode =(afAddrMode_t)Addr64Bit ;// 协调器->路由器 (IEEE地址发送)
SampleApp_Addr.endPoint = SAMPLEAPP_ENDPOINT;
SampleApp_Addr.addr.extAddr=IEEE_Rou;
这样写法编译器报错了,怎么利用64位地址来指定发送?
ZLongAddr_t extAddr;
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.
SampleApp_Addr.addrMode =(afAddrMode_t)Addr64Bit ;// 协调器->路由器 (IEEE地址发送)
SampleApp_Addr.endPoint = SAMPLEAPP_ENDPOINT;
SampleApp_Addr.addr.extAddr=IEEE_Rou;
这样写法编译器报错了,怎么利用64位地址来指定发送?
ZLongAddr_t extAddr;
//SampleApp_Addr.addr.extAddr=IEEE_Rou;注释掉
osal_memcpy( SampleApp_Addr.addr.extAddr, IEEE_Rou, Z_EXTADDR_LEN);
直接把IEEE地址赋值到SampleApp_Addr.addr.extAddr中去。