I use this function,can't report.Sniffer can't grab this report packet.
void zclLightReportEvent(uint16 endpoint, uint8 *zclOnOffLight_OnOff)
{
zclReportCmd_t *pReportCmd;
pReportCmd = osal_mem_alloc( sizeof(zclReportCmd_t) + sizeof(zclReport_t) );
if ( pReportCmd != NULL )
{
pReportCmd->numAttr = 1;
pReportCmd->attrList[0].attrID = ATTRID_ON_OFF;
pReportCmd->attrList[0].dataType = ZCL_DATATYPE_UINT8;
pReportCmd->attrList[0].attrData = (void *)(zclOnOffLight_OnOff);
zcl_SendReportCmd( endpoint,
&zcl_Coord_nwkAddr,
ZCL_CLUSTER_ID_GEN_ON_OFF,
pReportCmd, ZCL_FRAME_SERVER_CLIENT_DIR, TRUE,
zcl_SeqNum++ );
osal_mem_free( pReportCmd );
}
}