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

@@ -11,7 +11,7 @@ namespace MewtocolNet {
/// <summary>
/// The PLC com interface class
/// </summary>
public class MewtocolInterfaceTcp : MewtocolInterface, IPlcEthernet {
public sealed class MewtocolInterfaceTcp : MewtocolInterface, IPlcEthernet {
//TCP
internal TcpClient client;
@@ -29,22 +29,6 @@ namespace MewtocolNet {
internal MewtocolInterfaceTcp () : base() { }
/// <inheritdoc/>
public IPlcEthernet WithPoller () {
usePoller = true;
return this;
}
/// <inheritdoc/>
public IPlcEthernet AddRegisterCollection (RegisterCollection collection) {
WithRegisterCollection(collection);
return this;
}
#region TCP connection state handling
/// <inheritdoc/>