Data on Webserver (SPIFFS)
Posted: Wed May 29, 2019 11:10 am
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
Regards, Chris.
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
function in the middle seems to just return it in plain text.+String(Random(0, 255))
Regards, Chris.