find()

Serial.find() reads data from the serial buffer until the target string of given length is found. The function returns true if target string is found, false if it times out.
Serial.find(target)
Serial.find(target, length)

target: the string to search for. Allowed data types: char.
length: length of the target. Allowed data types: size_t.


boolean