Disconnect wifi after OTA update
This commit is contained in:
		@@ -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)));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user