From a50cd0f09e3491858b9ef5da3d8f85aba8c548e9 Mon Sep 17 00:00:00 2001 From: pgp Date: Tue, 15 Dec 2020 15:59:07 +0100 Subject: [PATCH] add restart at the end of the wifiAP function --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 69e6495..d370e9a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -237,9 +237,9 @@ void wifi_AP() { client.stop(); Serial.println("Client Disconnected."); } + ESP.restart(); } - void stop_moteur() { moteur.writeMicroseconds(1500); delay(1000); @@ -276,7 +276,6 @@ void scribe_sd (fs::FS &fs, const char * path, const char * horodatage) { file.close(); } - void vigie () { etat_bouton_wifi = digitalRead(bouton_wifi); if ( etat_bouton_wifi == HIGH && sem_wifi == false ) {