Innovenergy_trunk/csharp/Lib/Devices/EmuMeter/EmuMeterDevice.cs

21 lines
598 B
C#

using InnovEnergy.Lib.Protocols.Modbus.Channels;
using InnovEnergy.Lib.Protocols.Modbus.Clients;
using InnovEnergy.Lib.Protocols.Modbus.Slaves;
namespace InnovEnergy.Lib.Devices.EmuMeter;
public class EmuMeterDevice: ModbusDevice<EmuMeterRegisters>
{
public EmuMeterDevice(String hostname, UInt16 port = 502, Byte slaveId = 1) : this(new TcpChannel(hostname, port), slaveId)
{
}
public EmuMeterDevice(Channel channel, Byte slaveId = 1) : base(new ModbusTcpClient(channel, slaveId))
{
}
public EmuMeterDevice(ModbusClient client) : base(client)
{
}
}