You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(zigbee): Save network channel after 1st joining for faster rejoin (espressif#11123)
* feat(zigbee): Save network channel after 1st joining for faster rejoin
* ci(pre-commit): Apply automatic fixes
* feat(zigbee): Add channel mask reset after timeout
* feat(zigbee): Add the resetChannelMask to all Begin methods
* feaz(zigbee): Move function to private and add set method
* fix(example): Remove test from device mode name
* ci(pre-commit): Apply automatic fixes
---------
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
// For battery powered devices, it can be better to set timeout for Zigbee Begin to lower value to save battery
103
+
// If the timeout has been reached, the network channel mask will be reset and the device will try to connect again after reset (scanning all channels)
104
+
Zigbee.setTimeout(10000); // Set timeout for Zigbee Begin to 10s (default is 30s)
105
+
102
106
// When all EPs are registered, start Zigbee in End Device mode
103
107
if (!Zigbee.begin(&zigbeeConfig, false)) {
104
108
Serial.println("Zigbee failed to start!");
105
109
Serial.println("Rebooting...");
106
-
ESP.restart();
110
+
ESP.restart();// If Zigbee failed to start, reboot the device and try again
0 commit comments