接口 SerialPortWrapper
public interface SerialPortWrapper
Wrapper to further aid in abstracting Modbus4J from a serial port implementation
-
方法详细资料
-
close
Close the Serial Port- 抛出:
Exception- if any.
-
open
open.
- 抛出:
Exception- if any.
-
getInputStream
InputStream getInputStream()Return the input stream for an open port- 返回:
- a
InputStreamobject.
-
getOutputStream
OutputStream getOutputStream()Return the output stream for an open port- 返回:
- a
OutputStreamobject.
-
getBaudRate
int getBaudRate()getBaudRate.
- 返回:
- a int.
-
getDataBits
int getDataBits()getDataBits.
- 返回:
- a int.
-
getStopBits
int getStopBits()getStopBits.
- 返回:
- a int.
-
getParity
int getParity()getParity.
- 返回:
- a int.
-