findUntil() reads data from the stream until the target string or the terminator string is found, or the operation times out (see Stream.setTimeout()). The function returns true if the target string is found, or false if the terminator is found first or the operation times out.
This function is part of the Stream class, and can be called by any class that inherits from it (Wire, Serial, etc). See the Stream class main page for more information.
stream.findUntil(target, terminator)
target: the string to search for. Allowed data types: char*.terminator: the terminator string that stops the search. Allowed data types: char*.true if the target string is found, false if the terminator is found first or the operation times out. Data type: bool.