bytesAvailable

open override fun bytesAvailable(): Int

Checks how many bytes are available to be read from the serial port.

Should only be called while the connection is open.

Return

Number of bytes available to be read