cc1310 发送数据的时候那个远端地址 dstaddr 是怎么确定的,地址的设置在哪里呢
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.
cc1310 发送数据的时候那个远端地址 dstaddr 是怎么确定的,地址的设置在哪里呢
请看程序中的获取:
static void jdllcJoinedCb(ApiMac_deviceDescriptor_t *pDevInfo, Llc_netInfo_t *pParentInfo) { uint32_t randomNum = 0; /* Copy the parent information */ memcpy(&parentInfo, pParentInfo, sizeof(Llc_netInfo_t)); /* Set the collector's address as the parent's address */ if (pParentInfo->fh && CONFIG_RX_ON_IDLE) { collectorAddr.addrMode = ApiMac_addrType_extended; memcpy(collectorAddr.addr.extAddr, pParentInfo->devInfo.extAddress, (APIMAC_SADDR_EXT_LEN)); } else { collectorAddr.addrMode = ApiMac_addrType_short; collectorAddr.addr.shortAddr = pParentInfo->devInfo.shortAddress; }