using NModbus; using System; using System.IO.Ports; using System.Net.Sockets; namespace Team.Communicate.Modbus { public interface IModbusMasterFactory { IModbusTcpMaster CreateModbusTcpMaster(Guid id,string ip,int port); IModbusTcpMaster CreateModbusTcpMaster(Guid id, TcpClient tcpClient); IModbusTcpMaster GetModbusTcpMaster(Guid id); IModbusSerialMaster CreateModbusSerialMaster(Guid id,string portName); IModbusSerialMaster CreateModbusSerialMaster(Guid id, SerialPort serialPort); IModbusSerialMaster GetModbusSerialMaster(Guid id); //IModbusTcp } }