Disconnect wifi after OTA update

This commit is contained in:
Petr Kracík 2019-06-12 11:25:47 +02:00
parent 14eb4d3308
commit ef57fc6b0e

View File

@ -35,6 +35,8 @@ void setup() {
})
.onEnd([]() {
Serial.println("\nEnd");
Serial.println("Disconnect from wifi");
WiFi.disconnect();
})
.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));