Added auto prop sending

- updated readme
This commit is contained in:
Sandoun
2023-06-15 20:49:14 +02:00
parent 62f4a48bf9
commit 7864915967
4 changed files with 48 additions and 3 deletions

View File

@@ -164,9 +164,19 @@ public class ExampleScenarios {
await interf.ConnectAsync();
await interf.SetRegisterAsync(nameof(registers.StartCyclePLC), true);
//use the async method to make sure the cycling is stopped
await interf.SetRegisterAsync(nameof(registers.StartCyclePLC), false);
await Task.Delay(-1);
await Task.Delay(5000);
//set the register without waiting for it async
registers.StartCyclePLC = true;
await Task.Delay(5000);
registers.StartCyclePLC = false;
await Task.Delay(2000);
}