mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:05 +00:00
html pages added to spiffs
This commit is contained in:
parent
dbb717eb47
commit
310b3afe59
5 changed files with 1298 additions and 46 deletions
|
|
@ -16,11 +16,6 @@
|
|||
#include "display.h"
|
||||
#include "utils.h"
|
||||
|
||||
//
|
||||
#include "web_utils.h"
|
||||
//
|
||||
|
||||
|
||||
AsyncWebServer server(80);
|
||||
|
||||
extern WiFiClient espClient;
|
||||
|
|
@ -274,16 +269,11 @@ void startOTAServer() {
|
|||
});
|
||||
|
||||
server.on("/test1", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||
request->send(200, "text/html", htmlPage1);
|
||||
request->send(SPIFFS, "/index.html", "text/html");
|
||||
});
|
||||
|
||||
server.on("/test2", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||
String dynamicContent = String(htmlPage3);
|
||||
dynamicContent.replace("%VCALLSIGN%", Config.callsign);
|
||||
|
||||
|
||||
|
||||
request->send(200, "text/html", dynamicContent);
|
||||
request->send(SPIFFS, "/index2.html", "text/html");
|
||||
});
|
||||
|
||||
AsyncElegantOTA.begin(&server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue