Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class

Serial

Name

flush()

Examples
Serial.flush();
Description Flushes the serial port buffer. Further calls to read() and available() will return data received after the flush() command was issued.
Syntax
serial.flush()
Parameters
serial The serial port, it can be Serial or Serial1
Returns None
Usage Application
Updated on November 01, 2009 01:07:13am PDT

Creative Commons License