Innovenergy_trunk/csharp/Lib/Devices/Adam6060/Adam6060Device.cs

18 lines
520 B
C#

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