12 lines
446 B
C#
12 lines
446 B
C#
|
namespace InnovEnergy.Lib.Protocols.Modbus.Connections;
|
||
|
|
||
|
|
||
|
|
||
|
public abstract class ModbusConnection
|
||
|
{
|
||
|
public abstract IReadOnlyList<Byte> Receive(UInt16 nBytes);
|
||
|
public abstract void Transmit(IEnumerable<Byte> bytes);
|
||
|
|
||
|
public abstract void Open(); // calls to opening an already open connection must be ignored
|
||
|
public abstract void Close(); // calls to closing an already closed connection must be ignored, must not throw
|
||
|
}
|