Serial Line Delimeters

Hi, I have a problem. I currently do not have access to an arduino, so I can't test this out, but does Serial.readString() require a line delimeter to stop blocking the code? I'm using JSSC with Java to communicate over Serial, and I'm just wondering if I need to add a \n to the end of each serial message. Thanks!

so I can’t test this out, but does Serial.readString() require a line delimeter to stop blocking the code?

Of course it does.

I’m just wondering if I need to add a \n to the end of each serial message.

Yes.

Thanks! I'll add the changes.

If you use the examples in Serial Input Basics you can choose any delimiter that meets your need.

And, unlike readString() they do not block the Arduino.

...R