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