Skip to content

Commit

Permalink
logo rename resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnymalina committed Apr 22, 2024
1 parent 7bcca98 commit 35a2255
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
File renamed without changes
2 changes: 1 addition & 1 deletion data/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
<div class="ip-address" id="ip-address">IP Address: Loading...</div>
<div class="connection-icon" id="connection-icon"></div>
</div>
<img src="/lora2mqtt.png" alt="LoRa2MQTT Logo" style="max-width: 200px; margin-bottom: 20px;">
<img src="/logo.png" alt="LoRa2MQTT Logo" style="max-width: 150px; margin-bottom: 20px;">
<h1>ESP32 LoRa2MQTT Gateway</h1>

<h2>Status Indicators</h2>
Expand Down
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"); });
Expand All @@ -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);

Expand Down

0 comments on commit 35a2255

Please sign in to comment.