This page is also available in 2 other languages

Serial.flush()

Description

Waits for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)

flush() inherits from the Stream utility class.

Syntax

Serial.flush()

Parameters

Serial: serial port object. See the list of available serial ports for each board on the Serial main page.

Returns

Nothing

See also