Other Parts Discussed in Thread: CC2530
ZLongAddr_t ZLA_t_2={0x00,0x12,0x4b,0x00,0x05,0x3c,0xec,0x38};//节点64位真实地址
ZLongAddr_t ZLA_t_3={0x00,0x12,0x4b,0x00,0x01,0x16,0xda,0x52};//节点64位真实地址
我的点播函数
void GenericApp_SendTheMessage_etx(ZLongAddr_t ZLA_t_x,uint8 clustor_x)
{
uint8 i;
afAddrType_t P2P_DstAddr;
P2P_DstAddr.addrMode = (afAddrMode_t)Addr64Bit;
P2P_DstAddr.endPoint = GENERICAPP_ENDPOINT;
for(i=0;i<8;i++)
{
P2P_DstAddr.addr.extAddr[i] =ZLA_t_x[i]; //向etx设备发送消息
}
//osal_memcpy(&P2P_DstAddr.addr.extAddr, &ZLA_t_x, 1);
if ( AF_DataRequest( &P2P_DstAddr, &GenericApp_epDesc,
clustor_x,
2,
RxBuf,
&GenericApp_TransID,
AF_DISCV_ROUTE, AF_DEFAULT_RADIUS ) == afStatus_SUCCESS )
{
// Successfully requested to be sent.
}
else
{
// Error occurred in request to send.
}
}
GenericApp_SendTheMessage_etx(ZLA_t_2,GENERICAPP_CLUSTERID);
GenericApp_SendTheMessage_etx(ZLA_t_3,GENERICAPP_CLUSTERID);
switch ( pkt->clusterId )
{
case GENERICAPP_CLUSTERID://1
LED1=1;
我这个方法没能实现点亮灯,请问具体如何实现