diff --git a/src/helpers/ESP32Board.cpp b/src/helpers/ESP32Board.cpp index 57838d32..dd1f1801 100644 --- a/src/helpers/ESP32Board.cpp +++ b/src/helpers/ESP32Board.cpp @@ -8,6 +8,8 @@ #include #include +#include + bool ESP32Board::startOTAUpdate(const char* id, char reply[]) { WiFi.softAP("MeshCore-OTA", NULL); @@ -24,6 +26,9 @@ bool ESP32Board::startOTAUpdate(const char* id, char reply[]) { server->on("/", HTTP_GET, [](AsyncWebServerRequest *request) { request->send(200, "text/html", home_buf); }); + server->on("/log", HTTP_GET, [](AsyncWebServerRequest *request) { + request->send(SPIFFS, "/packet_log", "text/plain"); + }); AsyncElegantOTA.setID(id_buf); AsyncElegantOTA.begin(server); // Start ElegantOTA