Hi,
i was wondering if there was a way to quickly determine if the function Serial.readBytesUntil() has passed or failed to read in the termination character?
i notice that if i send the arduino a character then let this function timeout it still returns the number of bytes (or 1 in this case) that it read in. but i can not tell if it actually saw the termination character so my code continues to process it as if it did see the terminator.
basically i have come to the conclusion that this function is not capable of alerting you of this. so i was wondering if there is an alternative without having to write an entire function to handle it myself.
for example, first readBytesUntil() is called, then when it either see the termination character, exceeds the length of the specified buffer or times out it will return some number, lastly check to see if the last character in the buffer array was the desired termination character (if true then proceed otherwise loop around again).
any help here would be much appreciated!!