title |
---|
Serial.readStringUntil() |
readStringUntil()
reads characters from the serial buffer into a String. The function terminates if it times out (see setTimeout()).
This function is part of the Stream class, and is called by any class that inherits from it (Wire, Serial, etc). See the Stream class main page for more information.
Serial.readStringUntil(terminator)
Serial
: serial port object. See the list of available serial ports for each board on the Serial main page.
terminator
: the character to search for (char
)
The entire String read from the serial buffer, up to the terminator character
-
LANGUAGE Serial
-
LANGUAGE begin()
-
LANGUAGE end()
-
LANGUAGE available()
-
LANGUAGE read()
-
LANGUAGE peek()
-
LANGUAGE flush()
-
LANGUAGE print()
-
LANGUAGE println()
-
LANGUAGE write()
-
LANGUAGE SerialEvent()
-
LANGUAGE stream.parseFloat()