Add underlying byte data for registers

- change backend logic for register r/w
- remade interface builder pattern for better syntactic sugar
- refined tests
This commit is contained in:
Felix Weiß
2023-07-12 00:32:56 +02:00
parent fbd53c850f
commit 6c7e91f648
32 changed files with 1172 additions and 463 deletions

View File

@@ -103,7 +103,7 @@ namespace MewtocolTests
output.WriteLine($"Testing: {plc.PLCName}");
var cycleClient = Mewtocol.Ethernet(plc.PLCIP, plc.PLCPort);
var cycleClient = Mewtocol.Ethernet(plc.PLCIP, plc.PLCPort).Build();
await cycleClient.ConnectAsync();
@@ -124,7 +124,7 @@ namespace MewtocolTests
output.WriteLine($"Testing: {plc.PLCName}\n");
var client = Mewtocol.Ethernet(plc.PLCIP, plc.PLCPort);
var client = Mewtocol.Ethernet(plc.PLCIP, plc.PLCPort).Build();
await client.ConnectAsync();
@@ -155,7 +155,7 @@ namespace MewtocolTests
output.WriteLine($"\n\n --- Testing: {plc.PLCName} ---\n");
var client = Mewtocol.Ethernet(plc.PLCIP, plc.PLCPort);
var client = Mewtocol.Ethernet(plc.PLCIP, plc.PLCPort).Build();
foreach (var testRW in testRegisterRW) {