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.

CC2651P3: Error in zcl_SendReportCmd

Part Number: CC2651P3


Hi,

i am trying to use  zcl_SendReportCmd to send report,

zclReportCmd_t rptcmd;
rptcmd.numAttr = 1;
rptcmd.attrList[0].attrID = ATTRID_POWER_CONFIGURATION_BATTERY_PERCENTAGE_REMAINING;
rptcmd.attrList[0].dataType = ZCL_DATATYPE_UINT8;
rptcmd.attrList[0].attrData = (uint8*)&battPercent;

zcl_SendReportCmd(SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, ZCL_CLUSTER_ID_GENERAL_POWER_CFG, &rptcmd, ZCL_FRAME_CLIENT_SERVER_DIR, false, 0 );

but while compiling i am getting the error : 

"unresolved symbol zcl_SendReportCmd, first referenced in ./Application/zcl_samplesw.o"

I included zcl.h in my C file and also added ZCL_REPORT to "Predefined symbols" in the Build Settings