Arduino Reference - Find

Arduino

## Serial.find()

#### Description

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.flush() inherits from the Stream utility class.

#### Syntax

Serial.find(target)

#### Parameters

target : the string to search for (char)

#### Returns

boolean

#### See also

- Stream
- Stream.find()

Reference Home

©Arduino | Edit Page | Page History | Printable View | All Recent Site Changes