diff --git a/src/LoRa_APRS_iGate.cpp b/src/LoRa_APRS_iGate.cpp index 15f6546..f5f79b6 100644 --- a/src/LoRa_APRS_iGate.cpp +++ b/src/LoRa_APRS_iGate.cpp @@ -20,7 +20,7 @@ Configuration Config; WiFiClient espClient; -String versionDate = "2023.08.19"; +String versionDate = "2023.08.27"; int myWiFiAPIndex = 0; int myWiFiAPSize = Config.wifiAPs.size(); WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex]; diff --git a/src/utils.cpp b/src/utils.cpp index d9b0be3..ffa6bf4 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -44,6 +44,11 @@ extern String versionDate; extern uint32_t lastWiFiCheck; extern bool WiFiConnect; +// +const char* htmlPage1 = "

Page 1

"; +const char* htmlPage2 = "

Page 2

"; +// + namespace Utils { void processStatus() { @@ -264,8 +269,17 @@ void typeOfPacket(String packet, String packetType) { void startOTAServer() { if (stationMode==1 || stationMode==2 || (stationMode==5 && WiFi.status() == WL_CONNECTED)) { server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { - request->send(200, "text/plain", "Hi " + Config.callsign + ", \n\nthis is your (Richonguzman/CD2RXU) LoRa iGate , version " + versionDate + ".\n\nTo update your firmware or filesystem go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+3) + "/update\n\n\n73!"); + request->send(200, "text/plain", "Hi " + Config.callsign + ", \n\nthis is your (Richonguzman/CD2RXU) LoRa iGate , version " + versionDate + ".\n\nTo update your firmware or filesystem go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+3) + "/update\n\n\n73!"); }); + + server.on("/test1", HTTP_GET, [](AsyncWebServerRequest *request) { + request->send(200, "text/plain", htmlPage1 ); + }); + + server.on("/test2", HTTP_GET, [](AsyncWebServerRequest *request) { + request->send(200, "text/plain", htmlPage2 ); + }); + AsyncElegantOTA.begin(&server); server.begin(); Serial.println("init : OTA Server ... done!");