diff --git a/data/lora2mqtt.png b/data/logo.png
similarity index 100%
rename from data/lora2mqtt.png
rename to data/logo.png
diff --git a/data/main.html b/data/main.html
index ab72a83..1e0d1d2 100644
--- a/data/main.html
+++ b/data/main.html
@@ -218,7 +218,7 @@
IP Address: Loading...
-
+
ESP32 LoRa2MQTT Gateway
Status Indicators
diff --git a/src/main.cpp b/src/main.cpp
index 42c42f8..0755dfe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -106,8 +106,8 @@ void setup()
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request)
{ request->send(SPIFFS, "/main.html"); });
- server.on("/lora2mqtt.png", HTTP_GET, [](AsyncWebServerRequest *request)
- { request->send(SPIFFS, "/lora2mqtt.png", "image/png"); });
+ server.on("/logo.png", HTTP_GET, [](AsyncWebServerRequest *request)
+ { request->send(SPIFFS, "/logo.png", "image/png"); });
server.on("/favicon.ico", HTTP_GET, [](AsyncWebServerRequest *request)
{ request->send(SPIFFS, "/favicon.ico", "image/ico"); });
@@ -129,10 +129,10 @@ void setup()
server.on("/ip-address", HTTP_GET, [](AsyncWebServerRequest *request)
{ request->send(200, "application/json", "{\"ipAddress\":\"" + ETH.localIP().toString() + "\"}"); });
- server.on("/connection-type", HTTP_GET, [](AsyncWebServerRequest *request) {
+ server.on("/connection-type", HTTP_GET, [](AsyncWebServerRequest *request)
+ {
String connectionType = WiFi.getMode() == WIFI_MODE_STA ? "wifi" : "ethernet";
- request->send(200, "application/json", "{\"connectionType\":\"" + connectionType + "\"}");
- });
+ request->send(200, "application/json", "{\"connectionType\":\"" + connectionType + "\"}"); });
ElegantOTA.begin(&server);