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.

LAUNCHXL-CC26X2R1: Sending data of uint32_t via Zigbee

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: Z-STACK

Hi TI team,

I can use the function of zcl_SendReportCmd to send the data of uint8.

How can I modify my code if I want to use the same function to send the data of unit32_t because I found the attrData is only uint8 in the structure of zclReportCmd_t?

Now, I use below code to fill out the struct of zclReportCmd_t. But it seems not work.

uint32_t temp_data=300;

rptcmd.numAttr = 1;
rptcmd.attrList[0].attrID = ATTRID_ON_OFF;
rptcmd.attrList[0].dataType = ZCL_DATATYPE_UINT32;
rptcmd.attrList[0].attrData = (uint8 *)&temp_data;

Thanks