Chat freely about anything...

User avatar
By Jane Stanley
#47866 Can I serve an html file from an esp8266?

I have sucessfully used both LUA and Arduino (prefered) to create a webserver, and I am using the NODEMCUs to do a little wifi lighting control, but I have a web page that I have to serve to control it, and I want to upload it to an ESP8266. I don't want to have to override or hard code some printf version of the page.

This particular page is a 300 line .html file, and I want to put it on a ESP8266 as simply as possible. There is a good chance that the page will be swapped out later, so I don't want to have to redesign a page, and then redesign the ESP8266 code too!

Is this possible? I tried LUA but it complained about the syntax, even though it's just html, so however I did that (some time ago) wasn't what I wanted. Surely the hardware is capable of this, and it seems such a simple thing to do when you consider all the great things developers have done on this.

Any help or advice appreciated.

Thanks