This is what I tested:
connect to device with WEB IDE via TCP/IP
upload this code for a ESP8266 12F
var status=0; function swap() { status = !status; digitalWrite(NodeMCU.D4, status); } Serial1.on('data', function (data) { swap(); });
send data over serial with echo > /dev/cu.usbserial
echo > /dev/cu.usbserial
result every send toggle the onboard led
Hope this works for you too.
@MaBe 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.
This is what I tested:
connect to device with WEB IDE via TCP/IP
upload this code for a ESP8266 12F
send data over serial with
echo > /dev/cu.usbserial
result every send toggle the onboard led
Hope this works for you too.