Stream class
readStringUntil()
readStringUntil()
reads characters from a stream into a string until a terminator character is detected. The function terminates if it times out.
// PROTOTYPE
String readStringUntil(char terminator);
// SYNTAX
stream.readStringUntil(terminator);
Parameters:
- stream : an instance of a class that inherits from Stream
- terminator : the character to search for (char)
Returns: the entire string read from stream, until the terminator character is detected