• 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

    result every send toggle the onboard led

    Hope this works for you too.

About

Avatar for MaBe @MaBe started