Cannot read files from LittleFS
Posted: Mon Sep 11, 2023 9:33 am
Dear All,
I have been making (old) ESP32 based projects for some time now with no issues, but now I started my first ESP32-S3-mini-1 project and I noticed that the uploaded filesystem does not work.
When I make a simple web server to serve pages from PROGMEM or from an ordinary variable, it works fine: The same code fails as soon as I change it to take the HTML from a file uploaded as LittlFS:
The error message:
Truth be told, I get the same message on the old ESP32 too, but all the pages I have ever tried get processed and sent to the client correctly.
I use Platformio's Upload Filesystem Image function to upload my html files, just like with the old ESP32s..., and I also have this in platformio.ini:
Is there anything special about the new S3 variant I am not aware of? Does anyone have a working example code I could try? I haven't found any sample code anywhere that is specifically written for the S3...
Thanks for any pointers in advance!
I have been making (old) ESP32 based projects for some time now with no issues, but now I started my first ESP32-S3-mini-1 project and I noticed that the uploaded filesystem does not work.
When I make a simple web server to serve pages from PROGMEM or from an ordinary variable, it works fine:
Code: Select all
webServer.send(200, "text/html", "hello");
Code: Select all
File f = LittleFS.open("/status.html", "r");
s = f.readString();
f.close();
webServer.send(200, "text/html", s);
Code: Select all
[ 20094][E][WebServer.cpp:648] _handleRequest(): request handler not found
I use Platformio's Upload Filesystem Image function to upload my html files, just like with the old ESP32s..., and I also have this in platformio.ini:
Code: Select all
board_build.filesystem = littlefs
Thanks for any pointers in advance!