public class ModbusClientFactory extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static io.netty.util.internal.logging.InternalLogger |
logger |
| 构造器和说明 |
|---|
ModbusClientFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
ModbusClient4Master |
createClient4Master(int port,
ModbusResponseHandler handle) |
ModbusClient4Master |
createClient4Master(String hotst,
int port,
ModbusResponseHandler handle) |
ModbusClient4Slave |
createClient4Slave(int port,
ModbusRequestHandler handle) |
ModbusClient4Slave |
createClient4Slave(String hotst,
int port,
ModbusRequestHandler handle) |
static ModbusClientFactory |
getInstance() |
public static ModbusClientFactory getInstance()
public ModbusClient4Slave createClient4Slave(int port, ModbusRequestHandler handle) throws Exception
Exceptionpublic ModbusClient4Slave createClient4Slave(String hotst, int port, ModbusRequestHandler handle) throws Exception
Exceptionpublic ModbusClient4Master createClient4Master(int port, ModbusResponseHandler handle) throws Exception
Exceptionpublic ModbusClient4Master createClient4Master(String hotst, int port, ModbusResponseHandler handle) throws Exception
ExceptionCopyright © 2019. All Rights Reserved.