Reference for Wiring version 0027+ If you have a previous version, use the reference includede with your software. If 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 February 22, 2011 06:16:21pm PST

Creative Commons License