19 lines
519 B
C#
19 lines
519 B
C#
|
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))
|
||
|
{
|
||
|
}
|
||
|
}
|