SerialPortConfiguration

constructor(portName: String, baudRate: BaudRate = BaudRate.B115200, dataBits: PortDataBits = PortDataBits.DataBits8, stopBits: PortStopBits = PortStopBits.StopBits1, parity: PortParity = PortParity.None, flowControl: PortFlowControl = PortFlowControl.None, controlFlags: Int = SerialPort.NO_CONTROL_LINE_CHANGE)

Parameters

portName

The name of the port to open

baudRate

The Baud Rate to open this port at

dataBits

The number of data bits

stopBits

The number of stop bits

parity

The parity of the line

flowControl

The flow control of the line

controlFlags

The control flags to listen for changes for. This is a bitwise-OR of CONTROL_LINE_XXX_CHANGE, or NO_CONTROL_LINE_CHANGE if you don't care about getting notified about the control line changes.