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.

CC2652R: Zigbee, difference between zstack_afDataReq_t and the zigbee application defined sendcommand msg OTA

Part Number: CC2652R


Hi, 

I am currently working on implementing an application.

I'm wondering if there is any difference between sending message over the air using zstack_afDataReq_t and the given commands such as "zclGeneral_SendOnOff_CmdToggle"? If I am not mistaken, the commands use similar API to afDataReq to send message? Below is the code I'm currently using to send messages. 

I'm working on implementing Cluster ID 0x0B04 ELECTRICAL_MEASUREMENT application to measure analogue value from temp sensor, is there any send message api similar to zclGeneral_sendOnOff_cmdtoggle?