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(

Vulpes Radio Orienteering Controller

-

Local time:

+

Local time: . If this is incorrect, your browser is not providing the correct time + (Firefox example).

General Settings

@@ -188,16 +189,18 @@ const char index_html[] PROGMEM = R"rawliteral(

Network Settings

-

Network Access
- AP URL (http, not https): http://192.168.0.1
+

Network Access:
- Existing Network SSID:
- Existing Network Password:
+ Existing Wireless Network SSID:
+ Existing Wireless Network Password:
+

+ Access Point: Connect to wireless network "vulpes" and point your browser to URL http://192.168.0.1 (http, not https)
+ Existing Network (advanced): Connect to the same existing network and use the proper IP address (useful if you have access to the router or a serial connection).

- +
@@ -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);