Innovenergy_trunk/csharp/Lib/Devices/Adam6360D/Adam6360DDevice.cs

19 lines
530 B
C#
Raw Normal View History

2023-05-26 09:38:37 +00:00
using InnovEnergy.Lib.Protocols.Modbus.Channels;
using InnovEnergy.Lib.Protocols.Modbus.Clients;
using InnovEnergy.Lib.Protocols.Modbus.Slaves;
2023-06-13 09:26:48 +00:00
namespace InnovEnergy.Lib.Devices.Adam6360D;
2023-05-26 09:38:37 +00:00
public class Adam6360DDevice : ModbusDevice<Adam6360DRegisters>
{
public Adam6360DDevice(String hostname, Byte slaveId, UInt16 port = 502) :
this(new TcpChannel(hostname, port), slaveId)
{
}
2023-06-13 09:26:48 +00:00
2023-05-26 09:38:37 +00:00
public Adam6360DDevice(Channel channel, Byte slaveId) : base(new ModbusTcpClient(channel, slaveId))
{
}
}