tcpClient.write() and tcpClient.send() throw 'undefined'
Is it because of let tcpClient = require('net');? You'll have defined tcpClient as a local variable so it won't be available in the global scope
let tcpClient = require('net');
tcpClient
@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.
Is it because of
let tcpClient = require('net');
? You'll have definedtcpClient
as a local variable so it won't be available in the global scope