Serial.flush()

Description

Waits for the transmission of outgoing serial data to complete.

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

Suggest changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. If you see anything wrong, you can edit this page here.

License

The Arduino documentation is licensed under the Creative Commons Attribution-Share Alike 4.0 license.