diff --git a/src/main.cpp b/src/main.cpp index f7df652..bbeb011 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -134,7 +134,8 @@ const char index_html[] PROGMEM = R"rawliteral(
Local time:
+Local time: . If this is incorrect, your browser is not providing the correct time + (Firefox example).
@@ -289,6 +292,8 @@ String processor(const String& var){ return String(); } +// https://www.thegeekpub.com/276838/how-to-reset-an-arduino-using-code/ +void(* resetFunc) (void) = 0; // create a standard reset function // Set up arduinomorse pin and default WPM LEDMorseSender sender_blink(blinker, 10.0f); //f makes it a float @@ -594,7 +599,10 @@ void setup() { yourInputPassword = inputMessage; Serial.println(yourInputPassword); } - request->redirect("/"); + // Shouldn't need to do this if using this form. + //request->redirect("/"); + + resetFunc(); // reset the Arduino via software function }); server.onNotFound(notFound);