There is already some code in the esp8266 target, I have not looked at it more closely though. See https://github.com/espruino/Espruino/blob/master/targets/esp8266/telnet_client.c
@tve 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.
There is already some code in the esp8266 target, I have not looked at it more closely though. See https://github.com/espruino/Espruino/blob/master/targets/esp8266/telnet_client.c