Arduino Programming Language: Serial.flush

Name

flush()

Description

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

Syntax

Serial.flush()

Arduino Mega only:

Serial1.flush()
Serial2.flush()
Serial3.flush()

Parameters

none

Returns

none 


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc