Environment: ESP32-H2 DEvKitM-1 V1.2; latest ESP-IDF and Zigbee library.
Using the HA_ON_OFF_LIGHT as the basis with a temperature measurement attribute and cluster added (to endpoint 2), I can connect to the coordinator successfully and it sees the switch and temperature value.
If I regularly call the esp_zb_zcl_write_attr_cmd_req() function I can update the temperature value in the coordinator.
However I can't find how to set up a reporting command (as per the Zigbee Cluster Library Section 2.5.7 (Revision 8, Dec 2019).
(Looking at the ZBOSS documentation, all of the example code snippets that provide use a callback function but I can't see anything similar on any of the ESP function calls.)
Can you please provide an example or code snippet of how this should be done?
Susan
How to set up Zigbee attribute reporting
-
- Posts: 45
- Joined: Thu Aug 22, 2019 3:48 am
Re: How to set up Zigbee attribute reporting
Hi Susan,
I'm working on the same issue but in my code the zcl_write_cmd leads to an exception.
I'm sure a do some thing wrong in the setup but cant find the failure.
This is my first project with zigbee for ESP32. Now my question and I hope this is not to improper.
Could you please provide my with a code sniped of your working "zb_zcl_put_value_to_packet" setup ?
Kind regards,
Christian
I'm working on the same issue but in my code the zcl_write_cmd leads to an exception.
I'm sure a do some thing wrong in the setup but cant find the failure.
This is my first project with zigbee for ESP32. Now my question and I hope this is not to improper.
Could you please provide my with a code sniped of your working "zb_zcl_put_value_to_packet" setup ?
Kind regards,
Christian
Who is online
Users browsing this forum: Baidu [Spider], Majestic-12 [Bot], VinayDand and 410 guests