connect

abstract fun connect(baudRate: Com.BaudRates?): Boolean

Open and connect to the serial port.

Return

boolean - true success, false otherwise.

Parameters

baudRate

Baud rate to use.


abstract fun connect(baudRate: Com.BaudRates?, stopBits: Com.StopBits?, dataBits: Com.DataBits?, parity: Com.Parity?): Boolean

Open and connect to the serial port.

Return

boolean - true success, false otherwise.

Parameters

baudRate

Baud rate to use.

stopBits

Number of stop bits.

dataBits

Number of data bits per byte.

parity

Enable parity generation and detection.