The issue is the the build is compiled with 10 sockets.
When you reset, the sockets are not closed. Part of the reason for this, is one of the sockets was the telnet server socket - you would loose your connection to the board.
If you saved the result of you your server connect as a global:
var server=require("http").createServer(onPageRequest).listen(7348);
Then before the reset - you could do server.close()
This will shut down the connect and close the socket.
By the way, are using using a telnet connection? It is so much faster than the com port connection.
Oh - and your call to get the time - rather than have a page that returns the time - you can get the time out of the header..
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.
The issue is the the build is compiled with 10 sockets.
When you reset, the sockets are not closed. Part of the reason for this, is one of the sockets was the telnet server socket - you would loose your connection to the board.
If you saved the result of you your server connect as a global:
var server=require("http").createServer(onPageRequest).listen(7348);
Then before the reset - you could do
server.close()
This will shut down the connect and close the socket.
By the way, are using using a telnet connection? It is so much faster than the com port connection.
Oh - and your call to get the time - rather than have a page that returns the time - you can get the time out of the header..