Irobot Roomba Legacy icon Irobot Roomba Legacy — Legacy iRobot Discovery and 4xxx control via EZB software-serial (D0), supports Arduino/EZ-Robot, adjustable baud rate; not for hardware UART/USB Try it →
 

Hardwareuartavailable

UART.hardwareUartAvailable(uartIndex, [ezbIndex])

Parameters

uartIndex Index of UART to check.
ezbIndex (optional) Board index of the EZB to use.

Returns

Number of bytes available in the UART receive buffer at the specified UART.

Description

Returns the number of bytes available in the UART receive buffer at the specified UART given by uartIndex. The UART must be initialized first.