Replies: 4 comments 7 replies
-
maybe consider this? https://github.com/BCsabaEngine/svelteesp32 ready to go for this webserver and PsychicHTTP maybe also look into https://github.com/theelims/ESP32-sveltekit?tab=readme-ov-file |
Beta Was this translation helpful? Give feedback.
-
@diten : there is an exemple in the project already: https://github.com/mathieucarbou/ESPAsyncWebServer/tree/main/examples/StreamFiles It shows how to use streams to stream one or several files concatenated through ESPAsyncWebServer without using heap or stack. Note that streams are used to concatenate: otherwise ESPAsyncWebServer is already able to serve Files without using the stack or heap. Read the docs: https://github.com/mathieucarbou/ESPAsyncWebServer?tab=readme-ov-file#documentation |
Beta Was this translation helpful? Give feedback.
-
What is somewhat working, I'm not sure if is the best solution. Reading your links @mathieucarbou , I saw a interesting function:
This, worked perfectly for my needs. There is (I hope) a small thing, that what it should be registered with server callbacks, they are First looked into flash, not found, and then they are found on the server callback list and processed. |
Beta Was this translation helpful? Give feedback.
-
this is how I use to serve static files from LittleFS
With this construct your browser will only fetch static files once. Then it will only recheck if file has changed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to serve a couple of big files (materialize.min.css and materialize.min.js) which are about 150kb each.
Which, I know, is A LOT for a uC (even a ESP32)
I'm using LittleFS,
I thought that somewhat reading chunks and sending them back to the request would work. but I didn't manage to do it right.
Any suggestions ?
Of course, not using css/js or using something really small is my next step.
Thanks in advance. chers, Diten.
Beta Was this translation helpful? Give feedback.
All reactions