-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to renew the open network time on Zigbee coordinator? (TZ-1295) #483
Comments
Hi @nalves23 , I think your requirement can be achieved using the gateway example and the dimmable light example without any modifications. The gateway running on the ESP32-S3 would behave as follows: You can observe the
|
Hi @xieqinan Thank you for your feedback. I have test it the same example that you referee and It worked well. However, in my example it didn't work again! The problem occurs if I don't call the network opening function at gateway start up but if I call the network opening event randomly, with the gateway running for some time via a press button, for example. Can you try an example like mine, or has anyone already done it and had the same result? kind regards |
I think this issue can be resolved more quickly, if you can provide a simple example to reproduce it. |
Answers checklist.
IDF version.
ESP-IDF 5.3.1
esp-zigbee-lib version.
1.5.1
esp-zboss-lib version.
1.5.1
Espressif SoC revision.
ESP32-S3
What is the expected behavior?
When a coordinator has network in open mode to accept new Zigbee devices, after device joins, timer of open network must be renew by another 180 seconds.
What is the actual behavior?
I have a Zigbee coordinator with a physical button to open/close network for router or end devices joins the Zigbee network.
My default open network time is defined to 180 seconds. To open and close the network, I use the functions esp_zb_bdb_open_network(ZB_ZGP_DEFAULT_COMMISSIONING_WINDOW) and esp_zb_bdb_close_network(), respectively, where ZB_ZGP_DEFAULT_COMMISSIONING_WINDOW is 180.
I have a feature that after one device joins the network, I want to renew the open network time. After device joins I call the function esp_zb_bdb_open_network(ZB_ZGP_DEFAULT_COMMISSIONING_WINDOW) but the open network time doesn't renew it.
I have try it call first esp_zb_bdb_close_network() and after esp_zb_bdb_open_network(ZB_ZGP_DEFAULT_COMMISSIONING_WINDOW), but this procedure still doesn't work.
There are any function or callback that i can use to read open network timer or renew this timer when I need it?
Steps to reproduce.
More Information.
No response
The text was updated successfully, but these errors were encountered: