Serial.Find History

Hide minor edits - Show changes to markup

February 11, 2014, at 10:52 AM by Roberto Guido - corrected minor typo. Thanks Riva for report
Changed lines 7-8 from:

Serial.flush() inherits from the Stream utility class.

to:

Serial.find() inherits from the Stream utility class.

April 17, 2012, at 10:31 PM by Scott Fitzgerald -
Added lines 1-25:

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

Reference Home

Share