Package modbustcp
Class ModbusTCP
java.lang.Object
modbustcp.ModbusTCP
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getPort()
boolean
isAlive()
static ModbusTCP
openSocket
(String address) static ModbusTCP
openSocket
(String address, int port) sendCommand
(int command, int... args) void
setTimeout
(int timeout)
-
Method Details
-
openSocket
- Throws:
ModbusTCPException
-
openSocket
- Throws:
ModbusTCPException
-
getInetAddress
-
getPort
public int getPort() -
isAlive
public boolean isAlive() -
close
public void close() -
setTimeout
- Throws:
ModbusTCPException
-
sendCommand
- Throws:
ModbusTCPException
-