Dashboard file-server from sd-card (esp32-s3) #2470
-
Hello everyone, I would like to build a file server with mongoose so that it is possible to download log files from the external sd card of the esp32-s3 via the dashboard. Thanks for any help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please follow the guidelines in the documentation, examples and tutorials available. Mongoose is not compatible nor not-compatible with your external SD or whatever, it reads a file system. The very first lines in |
Beta Was this translation helpful? Give feedback.
Please follow the guidelines in the documentation, examples and tutorials available.
Mongoose is not compatible nor not-compatible with your external SD or whatever, it reads a file system. The very first lines in
app_main()
in the example mount a filesystem. Make sure the one you want is mounted.https://github.com/cesanta/mongoose/tree/master/examples/esp32/device-dashboard/main/main.c#L10-L18
Then, to serve files from that filesystem, read the docs and add the proper filesystem option to
mg_http_serve_dir()
:https://mongoose.ws/documentation/#filesystem