mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 19:52:53 +00:00
Update LinqPad samples
This commit is contained in:
@@ -16,10 +16,7 @@ var cpuMpiAddress = 0;
|
||||
|
||||
using var plc = new Sharp7Plc(ip, rackNumber, cpuMpiAddress);
|
||||
|
||||
await plc.InitializeAsync();
|
||||
await plc.ConnectionState
|
||||
.FirstAsync(c => c == Sharp7.Rx.Enums.ConnectionState.Connected)
|
||||
.ToTask();
|
||||
await plc.InitializeConnection();
|
||||
|
||||
"Connection established".Dump();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user