| Package | Description |
|---|---|
| com.ghgande.j2mod.modbus.slave |
| Modifier and Type | Method and Description |
|---|---|
static ModbusSlave |
ModbusSlaveFactory.createSerialSlave(SerialParameters serialParams)
Creates a serial modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(InetAddress address,
int port,
int poolSize,
boolean useRtuOverTcp)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(InetAddress address,
int port,
int poolSize,
boolean useRtuOverTcp,
int maxIdleSeconds)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(int port,
int poolSize)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createTCPSlave(int port,
int poolSize,
boolean useRtuOverTcp)
Creates a TCP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createUDPSlave(InetAddress address,
int port)
Creates a UDP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.createUDPSlave(int port)
Creates a UDP modbus slave or returns the one already allocated to this port
|
static ModbusSlave |
ModbusSlaveFactory.getSlave(AbstractModbusListener listener)
Returns the running slave that utilises the give listener
|
static ModbusSlave |
ModbusSlaveFactory.getSlave(ModbusSlaveType type,
int port)
Returns the running slave listening on the given port
|
static ModbusSlave |
ModbusSlaveFactory.getSlave(ModbusSlaveType type,
String port)
Returns the running slave listening on the given port
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ModbusSlaveFactory.close(ModbusSlave slave)
Closes this slave and removes it from the running list
|
Copyright © 2025. All Rights Reserved.