SD web server interaction
Posted: Mon Jan 02, 2017 12:24 pm
Hi
This may seem like a dumb question, but after playing around with using the esp12 to serve up a web page from an SD card, I've hit a wall. I've been the using the SDWebServer example that is in the Arduino IDE.
What I eventually want to do is serve a web page that acts as an interface for the client to control the esp12 sending out another file over serial. So in the web page there is a list of all the data files stored on the SD card and the user can select one, then the esp12 reads the data off the file and sends it out using the software serial library to another device.
What I'm struggling with is how and where to code this from. I currently have a .htm web page that contains some .js files that are written with p5.js. I have created those in isolation from the esp12, basically coding them on my desktop, then transferring them to the SD card. I have 3 pages each with their own p5.js file and all linking to one another.
How would I structure it so that some event happening on the web page (I assume written either in the .htm or .js files) would trigger some function written on the esp12?
Many thanks
This may seem like a dumb question, but after playing around with using the esp12 to serve up a web page from an SD card, I've hit a wall. I've been the using the SDWebServer example that is in the Arduino IDE.
What I eventually want to do is serve a web page that acts as an interface for the client to control the esp12 sending out another file over serial. So in the web page there is a list of all the data files stored on the SD card and the user can select one, then the esp12 reads the data off the file and sends it out using the software serial library to another device.
What I'm struggling with is how and where to code this from. I currently have a .htm web page that contains some .js files that are written with p5.js. I have created those in isolation from the esp12, basically coding them on my desktop, then transferring them to the SD card. I have 3 pages each with their own p5.js file and all linking to one another.
How would I structure it so that some event happening on the web page (I assume written either in the .htm or .js files) would trigger some function written on the esp12?
Many thanks