-->
Page 23 of 23

Re: [DEVELOPMENT] IOT example GPIO/ADC web client and web se

PostPosted: Mon Mar 02, 2015 12:38 pm
by gerardwr
ddrscott wrote:
gerardwr wrote:BTW : The elua webserver is now ported to nodeMcu (see in the Examples section).

http://www.esp8266.com/viewtopic.php?f=19&t=702&hilit=lhttpd&start=60

Re: [DEVELOPMENT] IOT example GPIO/ADC web client and web se

PostPosted: Sun Mar 15, 2015 10:46 am
by Gadgit
I found I had a problem with the code in your zip linked to in the first post (dated 30 Nov 14) that would cause the ESP to restart after any web request.

I tracked it down to the location of the

Code: Select allconn:on("sent",function(conn) conn:close() end)


line. I believe that this line should be one 'end' statement down i.e. not inside the conn:on("receive".... function but inside the srv:listen function.

Hopefully this helps someone out - or perhaps the code can be updated and tested again.

Cheers