autopolling works now

This commit is contained in:
nikzori
2024-12-09 16:24:02 +03:00
parent c26d6084f3
commit 38fb1dfa84
5 changed files with 118 additions and 44 deletions

View File

@@ -30,7 +30,7 @@ namespace Gidrolock_Modbus_Scanner
public string dataType;
public bool readOnce;
public Entry(string name, RegisterType registerType, ushort address, ushort length, string dataType, bool readOnce)
public Entry(string name, RegisterType registerType, ushort address, ushort length = 1, string dataType = "uint16", bool readOnce = false)
{
this.name = name;
this.registerType = registerType;