mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 22:47:01 +00:00
changing from SPIFFS to LittleFS
This commit is contained in:
parent
9e10a7fad1
commit
1b28beb3f4
3 changed files with 10 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include <ESPAsyncWebServer.h>
|
||||
#include <AsyncElegantOTA.h>
|
||||
#include <AsyncTCP.h>
|
||||
#include <SPIFFS.h>
|
||||
#include <LittleFS.h>
|
||||
#include <WiFi.h>
|
||||
#include "configuration.h"
|
||||
#include "station_utils.h"
|
||||
|
|
@ -269,11 +269,11 @@ void startOTAServer() {
|
|||
});
|
||||
|
||||
server.on("/test1", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||
request->send(SPIFFS, "/index.html", "text/html");
|
||||
request->send(LittleFS, "/index.html", "text/html");
|
||||
});
|
||||
|
||||
server.on("/test2", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||
request->send(SPIFFS, "/index2.html", "text/html");
|
||||
request->send(LittleFS, "/index2.html", "text/html");
|
||||
});
|
||||
|
||||
if (Config.ota.username != "" && Config.ota.password != "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue