Innovenergy_trunk/csharp/Lib/Devices/Doepke/DoepkeDevice.cs

19 lines
519 B
C#
Raw Normal View History

2023-12-06 13:54:08 +00:00
using InnovEnergy.Lib.Protocols.Modbus.Channels;
using InnovEnergy.Lib.Protocols.Modbus.Clients;
using InnovEnergy.Lib.Protocols.Modbus.Slaves;
namespace InnovEnergy.Lib.Devices.Doepke;
public class DoepkeDevice : ModbusDevice<DoepkeRegisters>
{
public DoepkeDevice(String hostname, Byte slaveId, UInt16 port = 502) :
this(new TcpChannel(hostname, port), slaveId)
{
}
public DoepkeDevice(Channel channel, Byte slaveId) : base(new ModbusTcpClient(channel, slaveId))
{
}
}