Serial Port Configuration
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
port Name
The name of the port to open
baud Rate
The Baud Rate to open this port at
data Bits
The number of data bits
stop Bits
The number of stop bits
parity
The parity of the line
flow Control
The flow control of the line
control Flags
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.