Serial Message Not Evaluating Correctly -- Arduino-VB.net App

if (inByte != '\n' && (SerialMessage_char < SerialMessageLength -1) )
    {
      SerialMessage[SerialMessage_char] = inByte;

I read this as "if the byte coming in is not a line feed, and if the byte will not exceed the max length of the message, then add the byte to the message."

This is why I don't understand why the line feed is still on the end of the String.

The following line will add the terminal '\0', but even if this line is commented-out, the String still doesn't equal "abc".

SerialMessage[SerialMessage_char] = '\0';

I've done some reading on strings and Strings and was not too worried about using a String in this case as it was simply a way to test out an project idea.

...I'm still experimenting with the Serial Inputs Basics post and the readStringUntil function. Hopefully, I can work toward a solution, but it sure is frustrating :slight_smile: