- Tue Dec 02, 2014 6:38 pm
#3876
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/esp8266Edit: latest webserver 2014-12-04, tested with nodemcu firmware 2014-12-04
Attachments
Updated 2014-12-04
(2.25 KiB) Downloaded 598 times
Last edited by adamjp on Thu Dec 04, 2014 12:31 am, edited 1 time in total.