little updates on the OTA welcome

This commit is contained in:
richonguzman 2023-06-11 11:28:37 -04:00
parent d740d214b0
commit f99627e373
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"callsign": "CD2RXU-10",
"stationMode": 4,
"stationMode": 2,
"iGateComment": "LoRa_APRS_iGate",
"wifi": {
"AP": [

View file

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