Hi everybody,
I hope I make this post to the right place !
I just started to use Arduino for fun today, and I don't fully understand something.
I try to send a message with Node-red to my Arduino Uno, and when it receives the message, the Arduino has to send me it back.
So I tried this :
String incomingText = "";
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available() > 0) {
incomingText = Serial.readString();
Serial.println("I received: " + incomingText);
}
}
It works like a charm ! I can see my message in the Node-red debug console.
But, when I try to change "Serial.println" with "Serial.print", I can't see anything and I really don't get it why... Any ideas ?
Thanks !