Description

flush() waits for the transmission of outgoing data to complete. This function ensures that all data in the output buffer has been sent before the program continues.

This function is part of the Stream class, and can be called by any class that inherits from it (Wire, Serial, etc). See the Stream class main page for more information.

Syntax

stream.flush()

Parameters

None.

Returns

Nothing.