Part Number: CC2530
Other Parts Discussed in Thread: CC2530
Hello everyone,
I am trying to send just an on/off command from one router to another router (cc2530 sample light configured as router).
I have written this line of code.
afAddrType_t RO_Address;
uint8 extAddr[]={0x12,0x69,0xDD,0x09,0x00,0x4B,0x12,0x00}; // sending off to this zigbee router, cc2530, sample light.
RO_Address.addrMode = (afAddrMode_t)Addr64Bit;
RO_Address.endPoint = SAMPLELIGHT_ENDPOINT; // 8
memcpy(RO_Address.addr.extAddr,&extAddr,Z_EXTADDR_LEN );
if (zclGeneral_SendOnOff_CmdOff(SAMPLELIGHT_ENDPOINT,&RO_Address,TRUE,0)==SUCCESS)
{
// something to be done.
}
But, it is not returning succes. Failed to send the off command.
Correct me if I am doing anything wrong or missing anything.