Using SPIFFS to serve web pages?
Posted: Fri Mar 09, 2018 12:50 pm
I'm trying to make a web server that displays a few different web pages, and does a few small things, like sending an IR signal, when a button is pushed on these pages.
The way I knew how to do this was to send large strings to the server using server.send, but that's getting me into trouble because the strings are pretty long (8K chars). Someone told me about SPIFFS, and I'm looking into that now. While I can upload sketch data, I haven't been able to figure out how to "turn on" the uploaded html pages. Can anyone provide a simple sketch that does this, say if I've already uploaded pageone.html?
Also, if I upload pageone.html and my server is running on something like 10.0.0.1, will the page be available at 10.0.0.1/pageone.html?
The way I knew how to do this was to send large strings to the server using server.send, but that's getting me into trouble because the strings are pretty long (8K chars). Someone told me about SPIFFS, and I'm looking into that now. While I can upload sketch data, I haven't been able to figure out how to "turn on" the uploaded html pages. Can anyone provide a simple sketch that does this, say if I've already uploaded pageone.html?
Also, if I upload pageone.html and my server is running on something like 10.0.0.1, will the page be available at 10.0.0.1/pageone.html?