Hi,
I'm trying to build a Self Balancing Robot based on an ESP and initial copy of this project.
While trying to compile the sketch I run into a compile error in the ESPAsyncWebServer, particularly on a "SPIFFSEditor.h not found" error.
I investigated already SPIFFS and SPIFFSeditor are excluded from the ESPAsyncWebServer library since a few years due to stopped maintenance of these libraries. SPIFFS can be easily replaced by the LittleFS library but for the SPIFFSeditor library I require an alternative.
The file editor object is used to calibrate and control the Self Balancing Robot using a webinterface, so required for initial setup of the robot parameters in the ESP and later to control movement. A nice solution I think.
But for now my lack of knowledge about file handling on ESP gets me stuck. But willing to learn of course :).
What would be an alternative file editor to use in this case?
I did not find an alternative like LittleFS is for SPIFFS.
On the part of the httpServer.addHandler the editor is created as far as I understand this:
// Start DNS server
if (MDNS.begin(host))
{
Serial.print("MDNS responder started, name: ");
Serial.println(host);
}
else
{
Serial.println("Could not start MDNS responder");
}
httpServer.on("/", HTTP_GET, [](AsyncWebServerRequest *request)
{
Serial.println("Loading index.htm");
request->send(LittleFS, "/index.htm"); });
httpServer.serveStatic("/", LittleFS, "/");
httpServer.onNotFound([](AsyncWebServerRequest *request)
{ request->send(404, "text/plain", "FileNotFound"); });
httpServer.addHandler(new SPIFFSEditor(LittleFS, http_username, http_password));
httpServer.begin();
wsServer.begin();
wsServer.onEvent(webSocketEvent);
MDNS.addService("http", "tcp", 80);
MDNS.addService("ws", "tcp", 81);