byte *buf = NULL;
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr64Bit;
GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT;
buf = GenericApp_DstAddr.addr.extAddr;
// 00 12 4B 00 03 46 E3 41
buf[0] = 0x41;
buf[1] = 0xe3;
buf[2] = 0x46;
buf[3] = 0x03;
buf[4] = 0x00;
buf[5] = 0x4b;
buf[6] = 0x12;
buf[7] = 0x00;
AF_DataRequest( &GenericApp_DstAddr, &GenericApp_epDesc,
TEST,
8,
tmp,
&GenericApp_TransID,
AF_DISCV_ROUTE, AF_DEFAULT_RADIUS );
可以使用IEEE地址单播,实测会出现严重丢包和收到重复的包,效果还不如使用0xffff广播
byte *buf = NULL;
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr64Bit;
GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT;
buf = GenericApp_DstAddr.addr.extAddr;
// 00 12 4B 00 03 46 E3 41
buf[0] = 0x41;
buf[1] = 0xe3;
buf[2] = 0x46;
buf[3] = 0x03;
buf[4] = 0x00;
buf[5] = 0x4b;
buf[6] = 0x12;
buf[7] = 0x00;
AF_DataRequest( &GenericApp_DstAddr, &GenericApp_epDesc,
TEST,
8,
tmp,
&GenericApp_TransID,
AF_DISCV_ROUTE, AF_DEFAULT_RADIUS );
可以使用IEEE地址单播,实测会出现严重丢包和收到重复的包,效果还不如使用0xffff广播
举报