Hide minor edits - Show changes to markup
(:include Reference/SerialSeeAlsoIncludes:)
Flushes the buffer of incoming serial data. Any call to Serial.read() or Serial.available() will return only data received after all the most recent call to Serial.flush().
Serial.flush() waits for outgoing data to transmit before clearing the buffer contents.
Waits for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)
Flushes the buffer of incoming serial data. That is, any call to Serial.read() or Serial.available() will return only data received after all the most recent call to Serial.flush().
Flushes the buffer of incoming serial data. Any call to Serial.read() or Serial.available() will return only data received after all the most recent call to Serial.flush().
flush() inherits from the Stream utility class.
Serial.flush() waits for outgoing data to transmit before clearing the buffer contents.
Serial.flush()
Arduino Mega only:
Serial1.flush()
Serial2.flush()
Serial3.flush()
none
nothing
Flushes the buffer of incoming serial data. That is, any call to Serial.read() or Serial.available() will return data received after all the most recent call to Serial.flush().
Flushes the buffer of incoming serial data. That is, any call to Serial.read() or Serial.available() will return only data received after all the most recent call to Serial.flush().
Flushes the buffer of incoming serial data. That is, any call to Serial.read() or Serial.available() will return data received after all the most recent call to Serial.flush().
none
none