Open asward opened 5 days ago
@asward
Following (to the best of my ability) the light sleep documentation for the zigbee-sdk I am expect the zigbee device to continue to sleep/wake forever.
Could you please share the changes you've made based on the light sleep example to implement the feature?
esp_zb_stack_main_loop();
. The order of calls is presereved as far as I can tell.ESP_ZB_COMMON_SIGNAL_CAN_SLEEP
attribute handlerI used the documentation(s) from Espressif: https://docs.espressif.com/projects/esp-idf/en/v5.3.1/esp32/api-reference/system/power_management.html?highlight=light%20sleep
https://docs.espressif.com/projects/esp-zigbee-sdk/en/latest/esp32/index.html
The code is not forked from the example code. I used idf.py to generate the template project and removed the original app code. It's difficult to 'diff' that other than what I've provided above. Not sure what else we're looking for. It's hard for me to debug or even troubleshoot this because it works fine for a few moments, and the error is buried in library code.
Answers checklist.
IDF version.
v5.4
esp-zigbee-lib version.
1.5.1
esp-zboss-lib version.
1.5.1
Espressif SoC revision.
ESP32-C6
What is the expected behavior?
Following (to the best of my ability) the light sleep documentation for the zigbee-sdk I am expect the zigbee device to continue to sleep/wake forever.
What is the actual behavior?
The device works normally for several cycles but inevitably ends in the assert logged below
Steps to reproduce.
Ref https://github.com/asward/espc6-zb-troubleshoot for environment config.
More Information.
... a few seconds later ...