public class ModbusRTUTCPTransport extends ModbusTCPTransport
| Constructor and Description |
|---|
ModbusRTUTCPTransport()
Default constructor
|
ModbusRTUTCPTransport(Socket socket)
Constructs a new ModbusTransport instance, for a given
Socket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeRequest(ModbusRequest msg)
Writes a ModbusMessage to the
output stream of this ModbusTransport.
|
void |
writeResponse(ModbusResponse msg)
Writes a ModbusResponseMessage to the
output stream of this ModbusTransport.
|
close, createTransaction, getLastActivityTimestamp, readRequest, readResponse, setHeadless, setHeadless, setMaster, setSocket, setTimeoutpublic ModbusRTUTCPTransport()
public ModbusRTUTCPTransport(Socket socket)
socket - the Socket used for message transport.public void writeResponse(ModbusResponse msg) throws ModbusIOException
AbstractModbusTransportwriteResponse in class ModbusTCPTransportmsg - a ModbusMessage.ModbusIOException - data cannot be
written properly to the raw output stream of
this ModbusTransport.public void writeRequest(ModbusRequest msg) throws ModbusIOException
AbstractModbusTransportwriteRequest in class ModbusTCPTransportmsg - a ModbusMessage.ModbusIOException - data cannot be
written properly to the raw output stream of
this ModbusTransport.Copyright © 2025. All Rights Reserved.