Skip to content

Dashboard file-server from sd-card (esp32-s3) #2470

Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants