I use SampleLight project to build my custom device with Z-Stack Home 1.2.2a.44539. I send report about on/off state by following code:
//report state zclReportCmd_t rptcmd; rptcmd.numAttr = 1; rptcmd.attrList[0].attrID = ATTRID_ON_OFF; rptcmd.attrList[0].dataType = ZCL_DATATYPE_BOOLEAN; rptcmd.attrList[0].attrData = (uint8*)&zclSampleLight_OnOff; // Set destination address to indirect zclSampleLight_DstAddr.addrMode = (afAddrMode_t)Addr16Bit; zclSampleLight_DstAddr.addr.shortAddr = 0; zclSampleLight_DstAddr.endPoint=1; zcl_SendReportCmd(SAMPLELIGHT_ENDPOINT,&zclSampleLight_DstAddr, ZCL_CLUSTER_ID_GEN_ON_OFF, &rptcmd, ZCL_FRAME_CLIENT_SERVER_DIR, false, 0 );
But the problem is the state show in Ubiqua and difference with a reference device(on the right): SampleLight show Yes with more structure but reference device only show On
