Other Parts Discussed in Thread: CC2652P,
Good morning, i'm struggling a bit on browsing the docs in order to understand a couple of things related to my custom project involving some LP-CC2652RB with custom firmware (zr_genericapp with "Smart Plug" clusters "Metering" and "On/Off") and a single CC2652P (coordinator) flashed with ZNP being hosted by Zigbee2mqtt software, which i am monitoring by its frontend.
With the right hints by Ryan, i have successfully set up the project, setting "On/Off" cluster's attributes callback and using it in order to control a LED on the Launchpad by sending the cluster commands "Toggle"/"On"/"Off" from the Zigbee2mqtt frontend.
Now i'm trying to make the next step that is reporting the "Metering" and "On/Off" cluster attributes in a periodic regime to the coordinator and to the Mqtt broker, in order to see the values in real-time on the frontend (which will be replaced in the future by a webapp that i have to design).
1 - How to implement this in the firmware? It is clear for me how to create and use callbacks to handle received commands related to a specific cluster, like i did for the On/Off cluster. But how to make attribute reports? How to report the values of the Metering and On/Off attributes? I'm a bit disoriented on finding these answers in the docs.
2 - If the async report is not possible, how to handle the problem in a ''polling'' way by the coordinator?
Thank you in advance, i'm having a lot of fun with these projects, but i'm often getting stuck in the docs browsing.
Roberto