nodemcu – simple webserver

I’ve modified and updated this source:

2 thoughts on “nodemcu – simple webserver

  1. Hi Tom – I’m playing around with ESP8266 flashed with NodeMCU so this Lua program was a boon to me! However, it isn’t working as it should. The first error is line 76. Apparently, this command has now been deprecated (see and so I replaced it with the recommended . I save the file as init.lua using ESPlorer, and, sure enough the systems starts and connects to my WLAN. However, when I open a web browser (say Firefox), I see the information about the browser ‘printed’ “GET Mozilla/5.0 (Windows NT 6.1; Win64; x64 rv:57.0) etc” but the webpage refuses to connect with a comment “The connection to the server was reset while the page was loading.”. I’m really getting frustrated as I have tried numerous programs – and I must say, yours is by far the easiest to understand!! – but they all exhibit this problem, even though they will connect to my wireless AP (I can always ping the ESP device with no problems) My device is powered by Lua 5.1.4 on SDK 2.1.0(116b762). Any comments you might have would be gratefully received! Thanks so much – Mike

Leave a Reply

Your email address will not be published. Required fields are marked *

6 × = 54