|
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr16Bit;
GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT;
GenericApp_DstAddr.addr.shortAddr = 0x0000;
if ( AF_DataRequest( &GenericApp_DstAddr,
&GenericApp_epDesc,
GENERICAPP_CLUSTERID2,
(byte)osal_strlen( RSSI_DATA ) + 1,
RSSI_DATA,
&GenericApp_TransID,
AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )
{
// Successfully requested to be sent.
HalLedSet(HAL_LED_1,HAL_LED_MODE_TOGGLE);
//memset((uint8 *)RSSI_DATA,0,osal_strlen(RSSI_DATA));
}
应该是要换成Addr64Bit 模式的吧
GenericApp_DstAddr.addrMode
|
|