lhttpd.lua Port to ESP8266
Posted: Tue Dec 02, 2014 6:38 pm
Hi, great work everyone working on the lua scripting and also great work to zeroday for making the esp8266 a little more accessible for non C folks. I've also been hacking away at creating a webserver on the esp8266, as wififofum mentioned in the IOT topic there is a library http://wiki.eluaproject.net/lhttpd which I have managed to port over to the ESP, which includes the php style tags within the HTML.
I have attached the example below, I have not tested this fully, as for the reading of files (file.readline) in the lua implementation from zeroday and the constraints of the device the scripting tags can only be on one line. hope this will help everyone along with their tiny webservers.
Edit: Git of simple windows console app downloader and webserver lua scripts https://github.com/MrAPierce/esp8266
Edit: latest webserver 2014-12-04, tested with nodemcu firmware 2014-12-04
I have attached the example below, I have not tested this fully, as for the reading of files (file.readline) in the lua implementation from zeroday and the constraints of the device the scripting tags can only be on one line. hope this will help everyone along with their tiny webservers.
Edit: Git of simple windows console app downloader and webserver lua scripts https://github.com/MrAPierce/esp8266
Edit: latest webserver 2014-12-04, tested with nodemcu firmware 2014-12-04