Hmm, it looks like the ESP8266 is just too busy to respond - probably a reboot of the ESP8266 is required (server.close() followed by wifi.reset()).
server.close()
wifi.reset()
By the way: The ESP8266 is never contacted until .listen - so createServer will probably always be successful.
.listen
createServer
It's a bit of a hack but you could use the uncaughtException event if you can't find another way of detecting issues : http://www.espruino.com/Reference#l_process_uncaughtException
uncaughtException
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hmm, it looks like the ESP8266 is just too busy to respond - probably a reboot of the ESP8266 is required (
server.close()
followed bywifi.reset()
).By the way: The ESP8266 is never contacted until
.listen
- socreateServer
will probably always be successful.It's a bit of a hack but you could use the
uncaughtException
event if you can't find another way of detecting issues : http://www.espruino.com/Reference#l_process_uncaughtException