本帖最后由 wes58 于 2024-12-18 04:24 编辑
In function void user_init(bool isRetention) you can see this line:
This is where reporting for on/off is registered.
You can add the code below to register reporting for level change:
This way, you can add reporting for any attribute that is defined in sampleLightEpCfg.c You have to ensure that the attribute is reportable - ACCESS_CONTROL_REPORTABLE
As far as where report is sent to - if I understand you correctly - the report will be sent to any device that is bound with this device.
You can use ZGC_TOOL to bind gateway to the sampleLight device, and bind any other device to the sampleLight device that you want to receive report.
|