mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 11:11:23 +00:00
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:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user