| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEVICE_CATEGORY
Constant for the value of the service property |
| public static final String | SERIAL_COMPORT
Service property for the serial comport. |
| Modifier and Type | Method and Description |
|---|---|
| public SerialPortConfiguration | Returns: The SerialPortConfiguration object containing the configuration.Gets the Serial port configuration. |
| public InputStream | |
| public OutputStream | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | setConfiguration(SerialPortConfiguration
The SerialPortConfiguration object containing the
configuration. configuration)Sets the Serial port configuration. |
| public void | |
| public void |
| DEVICE_CATEGORY | back to summary |
|---|---|
| public static final String DEVICE_CATEGORY Constant for the value of the service property A Serial base driver bundle must set this property key. | |
| SERIAL_COMPORT | back to summary |
|---|---|
| public static final String SERIAL_COMPORT Service property for the serial comport. Represents the name of the port. The value type is String. For example, "/dev/ttyUSB0", "COM5", or "/dev/tty.usbserial-XXXXXX". | |
| getConfiguration | back to summary |
|---|---|
| public SerialPortConfiguration getConfiguration() Gets the Serial port configuration.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Returns an input stream.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException Returns an output stream.
| |
| isCTS | back to summary |
|---|---|
| public boolean isCTS() Returns the CTS state.
| |
| isDSR | back to summary |
|---|---|
| public boolean isDSR() Returns the DSR state.
| |
| isDTR | back to summary |
|---|---|
| public boolean isDTR() Returns the DTR state.
| |
| isRTS | back to summary |
|---|---|
| public boolean isRTS() Returns the DTS state.
| |
| setConfiguration | back to summary |
|---|---|
| public void setConfiguration(SerialPortConfiguration configuration) throws SerialDeviceException Sets the Serial port configuration.
| |
| setDTR | back to summary |
|---|---|
| public void setDTR(boolean dtr) throws SerialDeviceException Sets the DTR state.
| |
| setRTS | back to summary |
|---|---|
| public void setRTS(boolean rts) throws SerialDeviceException Sets the RTS state.
| |