public class SerialPortSpecs extends DataObject
Modifier and Type | Field and Description |
---|---|
int |
baudRate
The baud rate for communications - defaults to 9600.
|
int |
bits
The number of data bits - defaults to 8.
|
int |
flowControl
The flow control to use.
|
int |
parity
This should be one of the SerialPort Parity options - e.g.
|
String |
portName
The name of the port.
|
int |
stopBits
The number of stop bits - defaults to 1.
|
Constructor and Description |
---|
SerialPortSpecs() |
Modifier and Type | Method and Description |
---|---|
SerialPort |
connect()
This attempts to create a new Serial Port with the current options.
|
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public String portName
public int baudRate
public int stopBits
public int parity
public int bits
public int flowControl
public SerialPort connect() throws IOException
ewe.io.IOException
- if the Serial Port could not be opened.IOException