Com.Daacoworks.Modbus.Clients.ModbusClientFactory

It is a factory class used to create an instance of type ModbusClient.

Usage:

const string hostname = “hostname”;
const int portnumber = 502;
ModbusSocketParameters connectionParams = new ModbusSocketParameters(hostname, portnumber, ModbusType.TCP);
ModbusClient client = ModbusClientFactory.GetInstance().Create(connectionParams);

whereas ModbusType is an enum which defines the type of Modbus supported by Modbus Modern API

com.daacoworks.modbus.clients.ModbusClientFactory

It is a factory class used to create an instance of type ModbusClient interface.

Usage:

String hostname = “hostname”;
int portnumber = 502;
ModbusSocketParameters connectionParams = new ModbusSocketParameters(hostname, portnumber, ModbusType.TCP);
ModbusClient client = ModbusClientFactory.getInstance().create(connectionParams);

whereas ModbusType is an enum which defines the type of Modbus supported by Modbus Modern API