How to get STM32WB to report automatic to Zigbee2MQTT?
Hi
I am creating my own Zigbee sensor, where i have add support for it in Zigbee2MQTT, however I am not sure on how the set the STM32WB up to automatic report its measured temperature values up?
I can select the endpoint, cluster, attributes i want to read from the STM32WB from Zigbee2MQTT and get the correct value, but im not sure what to use for setting it up, when the STM32WB join my network.
I make this call to save the value for it to read, but how to i report it. I want it to be updated every 5 second?
status = ZbZclAttrIntegerWrite(zigbee_app_info.temperature_meas_server_1, ZCL_TEMP_MEAS_ATTR_MEAS_VAL, i16CurrentTemperature);The STM32WB is setup as an enddevice, with temperature as a server.
Best regards
K-Fischer