-->
Page 1 of 1

Data on Webserver (SPIFFS)

PostPosted: Wed May 29, 2019 11:10 am
by Shandy
Hi all new to this forum and not been using an esp8266 much so forgive me if this is a simple task, my googling doesn't seem to reveal a simplistic approach either.

So here goes, i have a website that is stored in a .html file in the data folder on SPIFFS of an ESP8266, the ESP loads the web page and displays it perfectly however i have information within a JSON file that i read from and POST data to from various forms i then extract this data and wish to display it in plain text on the website.

I have data included connection status and information that i will want to display in a table, it doesn't need to update and can stay as it is until the page is refreshed so im not worried about using AJAX.

What is the most simplistic approach to displaying data on a web page, bare in mind its stored as a file so my
Code: Select all+String(Random(0, 255))
function in the middle seems to just return it in plain text.

Regards, Chris.

Re: Data on Webserver (SPIFFS)

PostPosted: Fri May 31, 2019 9:23 am
by ian
If I understand correctly you are trying to insert 'real time' data in a SPIFFS web page? Or at least data which will change in an otherwise static page?
I'm no expert but I found a solution to this.
Take a look at http://myiot.co.uk/data_in_SPIFFS/index.html
Ian