14 lines
310 B
C#
14 lines
310 B
C#
|
namespace InnovEnergy.Lib.Protocols.Modbus.Channels;
|
||
|
|
||
|
public class NullChannel : Channel
|
||
|
{
|
||
|
public override IReadOnlyList<Byte> Read(Int32 nBytes) => throw new NullChannelException();
|
||
|
|
||
|
public override void Write(IReadOnlyList<Byte> bytes)
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class NullChannelException : Exception
|
||
|
{
|
||
|
}
|