AdmiralCrunch
Well-known member
Hi
I somehow have serious trouble sending vars through serial between my Teensy and Raspi.
(I want to send strings like: "myVar:1;")
.. doing this, I recieve "myVar:;" on the other Teensy.
in the docs there is:
.. but with same results.
how can I send my vars through Serial?
I somehow have serious trouble sending vars through serial between my Teensy and Raspi.
(I want to send strings like: "myVar:1;")
Code:
int i = 2;
Serial1.write("myVar:");
Serial1.write(i);
Serial1.write(";");
.. doing this, I recieve "myVar:;" on the other Teensy.
in the docs there is:
so I triedSerial.write(val);
val: a value to send as a single byte
Code:
byte = 2;
Serial1.write("myVar:");
Serial1.write(i);
Serial1.write(";");
how can I send my vars through Serial?