Package comm
Class UART

Public Method clearBuffer

void clearBuffer()

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

All received data bytes are stored in a buffer. The read() methods are used to read from this buffer till the last data byte was read. Unread data bytes are lost when the clearBuffer() method is called. New received data bytes can be read with the read() methods after the clearBuffer() method was called.

Example

   uart.clearBuffer();

See also:

SPI
I2C