From f99627e3735b3c90a0d762ceaabf7cd528dac94e Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 11 Jun 2023 11:28:37 -0400 Subject: [PATCH] little updates on the OTA welcome --- data/igate_conf.json | 2 +- src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/igate_conf.json b/data/igate_conf.json index 735aac9..885111e 100644 --- a/data/igate_conf.json +++ b/data/igate_conf.json @@ -1,6 +1,6 @@ { "callsign": "CD2RXU-10", - "stationMode": 4, + "stationMode": 2, "iGateComment": "LoRa_APRS_iGate", "wifi": { "AP": [ diff --git a/src/utils.cpp b/src/utils.cpp index 9a94a2e..323797c 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -142,7 +142,7 @@ void typeOfPacket(String packet) { void startOTAServer() { if (stationMode==1 || stationMode==2) { server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { - request->send(200, "text/plain", "Hi This is your Richonguzman / CD2RXU LoRa iGate.\nIf you want tu update your firmware please go to: {iGate-IP-Adress}/update"); + request->send(200, "text/plain", "Hi, this is your (Richonguzman/CD2RXU) LoRa iGate.\nIf you want tu update your firmware please go to: http://" + getLocalIP().substring(getLocalIP().indexOf(":")+1) + "/update"); }); AsyncElegantOTA.begin(&server); server.begin();