On the ESP8266 WIFI MODULE page at http://www.espruino.com/ESP8266 under the heading GOTCHAS, it is very clear
You can only have one TCP/IP server, and while it is active you can not have any clients
In my mind this hinges on the word "active".
So I've used http://www.espruino.com/Reference#t_l_httpSrv_close to close a running http server and can then do a client require("http").get(...) successfully. However, when I try to restart the server using another http://www.espruino.com/Reference#t_l_httpSrv_listen I get the following error:
Uncaught Error: CIPSERVER failed (no change) at line 2 col 20 (a?a:"Timeout")+")"); ^ in function called from system
Is there a way to restart the server or do I need to "createServer" again: seems wasteful?
@Snerkle 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.
On the ESP8266 WIFI MODULE page at http://www.espruino.com/ESP8266 under the heading GOTCHAS, it is very clear
In my mind this hinges on the word "active".
So I've used http://www.espruino.com/Reference#t_l_httpSrv_close to close a running http server and can then do a client require("http").get(...) successfully.
However, when I try to restart the server using another http://www.espruino.com/Reference#t_l_httpSrv_listen
I get the following error:
Is there a way to restart the server or do I need to "createServer" again: seems wasteful?