var server = require("net").createServer(function(c) {
console.log('server connected');
c.write('Your welcome message!\r\n');
LoopbackA.setConsole();
LoopbackB.pipe(c);
c.pipe(LoopbackB);
}).listen(23);
You'll have to be careful not to reset() - which the Web IDE does automatically at upload normally - since that will remove the server which is serving your code!
You could do a little with:
var reallyReset = reset;
function reset() {
clearWatch();
clearInterval();
}
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.
Try:
You'll have to be careful not to
reset()
- which the Web IDE does automatically at upload normally - since that will remove the server which is serving your code!You could do a little with:
But that wouldn't delete any uploaded functions.