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.

就是短地址发送改为了长地址发送,数据就发不出了

就是短地址发送改为了长地址发送,数据就发不出了,具体代码见下面:
// Use short address
dstAddr.addr.shortAddr = destination;//destination==0就是协调器的地址;
 dstAddr.addrMode = afAddr16Bit;
改成下面代码变为长地址发送,却发不出了。
 uint8 ieee[Z_EXTADDR_LEN] ={0x00,0x12,0x4b,0x00,0x05,0x52,0x7b,0x28};
dstAddr.addrMode = afAddr64Bit;
osal_memcopy(dstAddr.addr.extAddr,ieee,8);
注osal_memcopy为
void osal_memcopy (void *dst,const void GENERIC *src,unsigned int len)
{
uint8 *pDst;
const uint8 GENERIC *pSrc;
pSrc=src;
pDst=dst;
while(len--)
{
*pDst++=*pSrc++;
}

}