Other Parts Discussed in Thread: Z-STACK
Tool/software: WEBENCH® Design Tools
I used 64 bit MAC for commm between coordinator and router now I want to change it to 16 bit short address.
Can you explain what changes I should make for this in following section of code. I know how to get the short address.
static void DEEPPayloadProcess(uint8 *buff,uint16 length)
{
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr64Bit;
GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT;
GenericApp_DstAddr.addr.extAddr[0] = buff[1];
GenericApp_DstAddr.addr.extAddr[1] = buff[2];
GenericApp_DstAddr.addr.extAddr[2] = buff[3];
GenericApp_DstAddr.addr.extAddr[3] = buff[4];
GenericApp_DstAddr.addr.extAddr[4] = buff[5];
GenericApp_DstAddr.addr.extAddr[5] = buff[6];
GenericApp_DstAddr.addr.extAddr[6] = buff[7];
GenericApp_DstAddr.addr.extAddr[7] = buff[8];
if ( AF_DataRequest( &GenericApp_DstAddr, &GenericApp_epDesc,
GENERICAPP_CLUSTERID,
length,
buff,
&GenericApp_TransID,
AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )
{
}
}