Disconnect wifi after OTA update
This commit is contained in:
parent
14eb4d3308
commit
ef57fc6b0e
@ -35,6 +35,8 @@ void setup() {
|
|||||||
})
|
})
|
||||||
.onEnd([]() {
|
.onEnd([]() {
|
||||||
Serial.println("\nEnd");
|
Serial.println("\nEnd");
|
||||||
|
Serial.println("Disconnect from wifi");
|
||||||
|
WiFi.disconnect();
|
||||||
})
|
})
|
||||||
.onProgress([](unsigned int progress, unsigned int total) {
|
.onProgress([](unsigned int progress, unsigned int total) {
|
||||||
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
|
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
|
||||||
|
Loading…
Reference in New Issue
Block a user