Skip to content

Commit c8f7c1b

Browse files
committed
fix(zigbee): fix serial and add missing factoryReset to example
1 parent 8e6cbfe commit c8f7c1b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: libraries/Zigbee/examples/Zigbee_Color_Dimmer_Switch/Zigbee_Color_Dimmer_Switch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ void loop() {
145145
static uint32_t last_print = 0;
146146
if (millis() - last_print > 30000) {
147147
last_print = millis();
148-
zbSwitch.printBoundDevices();
148+
zbSwitch.printBoundDevices(Serial);
149149
}
150150
}

Diff for: libraries/Zigbee/examples/Zigbee_On_Off_Switch/Zigbee_On_Off_Switch.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,6 @@ void loop() {
190190
static uint32_t lastPrint = 0;
191191
if (millis() - lastPrint > 10000) {
192192
lastPrint = millis();
193-
zbSwitch.printBoundDevices(&Serial);
193+
zbSwitch.printBoundDevices(Serial);
194194
}
195195
}

Diff for: libraries/Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy/Zigbee_Temp_Hum_Sensor_Sleepy.ino

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ void loop() {
128128
// If key pressed for more than 3secs, factory reset Zigbee and reboot
129129
Serial.println("Resetting Zigbee to factory and rebooting in 1s.");
130130
delay(1000);
131+
Zigbee.factoryReset();
131132
}
132133
}
133134
}

0 commit comments

Comments
 (0)