I know that using Serial.write(buf, len) I can write a specific number of bytes to the serial port, but how can I send that specific amount of bytes to a specific port?
I have a device connected to COM7 waiting for data from the serial port but when I use Serial.write(buf, len) it does not receives anything. I can see the data I'm sending with the serial monitor but nothing on my device.
What am I doing wrong?
On COM7 I have a telosb mote programmed with TinyOS running SerialAMReceiverC.
Working with a ESP8266 NodeMCU (on a WSN project with the mote).