19 lines
530 B
C#
19 lines
530 B
C#
using InnovEnergy.Lib.Protocols.Modbus.Channels;
|
|
using InnovEnergy.Lib.Protocols.Modbus.Clients;
|
|
using InnovEnergy.Lib.Protocols.Modbus.Slaves;
|
|
|
|
namespace InnovEnergy.Lib.Devices.Adam6360D;
|
|
|
|
public class Adam6360DDevice : ModbusDevice<Adam6360DRegisters>
|
|
{
|
|
|
|
public Adam6360DDevice(String hostname, Byte slaveId, UInt16 port = 502) :
|
|
this(new TcpChannel(hostname, port), slaveId)
|
|
{
|
|
}
|
|
|
|
|
|
public Adam6360DDevice(Channel channel, Byte slaveId) : base(new ModbusTcpClient(channel, slaveId))
|
|
{
|
|
}
|
|
} |