diff --git a/Sharp7.Rx/Interfaces/IS7Connector.cs b/Sharp7.Rx/Interfaces/IS7Connector.cs deleted file mode 100644 index 66566ac..0000000 --- a/Sharp7.Rx/Interfaces/IS7Connector.cs +++ /dev/null @@ -1,21 +0,0 @@ -using JetBrains.Annotations; -using Sharp7.Rx.Enums; - -namespace Sharp7.Rx.Interfaces; - -[NoReorder] -internal interface IS7Connector : IDisposable -{ - IObservable ConnectionState { get; } - Task InitializeAsync(); - - Task Connect(); - Task Disconnect(); - - Task ReadBytes(Operand operand, ushort startByteAddress, ushort bytesToRead, ushort dbNo, CancellationToken token); - - Task WriteBit(Operand operand, ushort startByteAddress, byte bitAdress, bool value, ushort dbNo, CancellationToken token); - Task WriteBytes(Operand operand, ushort startByteAddress, byte[] data, ushort dbNo, CancellationToken token); - - Task> ExecuteMultiVarRequest(IReadOnlyList variableNames); -} diff --git a/Sharp7.Rx/Sharp7Connector.cs b/Sharp7.Rx/Sharp7Connector.cs index 995f4a9..83d9bac 100644 --- a/Sharp7.Rx/Sharp7Connector.cs +++ b/Sharp7.Rx/Sharp7Connector.cs @@ -10,7 +10,7 @@ using Sharp7.Rx.Settings; namespace Sharp7.Rx; -internal class Sharp7Connector : IS7Connector +internal class Sharp7Connector: IDisposable { private readonly BehaviorSubject connectionStateSubject = new(Enums.ConnectionState.Initial); private readonly int cpuSlotNr;