SerialConnection

USB serial connection.

Functions

Link copied to clipboard
abstract override fun close()

abstract fun close(waitForStopped: Boolean)

Close the USB serial connection.

Link copied to clipboard
abstract fun connect()

Called to initiate the serial connection.

Link copied to clipboard
abstract fun sendBytes(bytes: ByteArray)

Send data (asynchronously) to the serial device. If the connection is not presently established then the data provided is ignored / dropped.