Open mw75 opened 1 month ago
In https://github.com/espressif/esp-zigbee-sdk/issues/435 @chshu wrote
Feel free to raise github issues for any particular questions,...
That does not work out that well here....
@mw75 The esp_zb_lock_acquire()
and esp_zb_lock_release()
should be used in pairs:
if(esp_zb_lock_acquire(1000/portTICK_PERIOD_MS)){
ESP_ERROR_CHECK(esp_zb_aps_data_request(&req));
esp_zb_lock_release();
}else{
Answers checklist.
IDF version.
v5.3.1
esp-zigbee-lib version.
1.5.0
esp-zboss-lib version.
1.5.0
Espressif SoC revision.
ESP32-C6
What is the expected behavior?
On a button press, a connected zigbee powerplug should be toggled and the implemented coordinator should open the network for joining.
What is the actual behavior?
The SoC - or at least the zigbee stack - looks like frozen. I have led_indicator_set_on_off calls on the ESP_ZB_NWK_SIGNAL_PERMIT_JOIN_STATUS signal of the esp_zb_app_signal_handler and the led is not turned on or off. I send received aps-data via TWAI and the bus shows nothing.
By commenting the esp_zb_lock_acquire everything works as expected!
Steps to reproduce.
More Information.
When debugging the hole handler is passed, but a breakpoint right on the entry of esp_zb_app_signal_handler is never triggered.