Arduino Programming Language: Serial.findUntil

Name

Serial.findUntil()

Description

Reads data from the serial buffer until a target string of given length or terminator string is found. 
The function returns true if the target string is found, false if it times out.

Syntax

Serial.findUntil(target, terminal)

Parameters

  • target : the string to search for (char)
  • terminal : the terminal string in the search (char)

Returns

boolean 


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc