mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-13 02:32:51 +00:00
This commit is contained in:
@@ -40,6 +40,7 @@ internal class Sharp7Connector : IDisposable
|
||||
}
|
||||
|
||||
public IObservable<ConnectionState> ConnectionState => connectionStateSubject.DistinctUntilChanged().AsObservable();
|
||||
public ConnectionState CurrentConnectionState => connectionStateSubject.Value;
|
||||
|
||||
public ILogger Logger { get; set; }
|
||||
|
||||
|
||||
@@ -240,6 +240,8 @@ public class Sharp7Plc : IPlc
|
||||
.ToTask(token);
|
||||
}
|
||||
|
||||
public override string ToString() => $"S7 {s7Connector} ({s7Connector.CurrentConnectionState})";
|
||||
|
||||
/// <summary>
|
||||
/// Initialize PLC and trigger connection. This method will not wait for the connection to be established.
|
||||
/// <para>
|
||||
|
||||
Reference in New Issue
Block a user