Different types of units. Writing values, relay unit

This commit is contained in:
ftc
2021-09-12 16:01:26 +03:00
parent 80cad276e8
commit cfd8d4c018
10 changed files with 296 additions and 74 deletions
+2
View File
@@ -62,6 +62,8 @@ namespace ESPServer
unitReceiver.Start();
var unitPinger = new UnitPinger(db);
unitPinger.Start();
// initialize data writer (do not need to save it as it will react on events by itself)
new UnitDataWriter(db, registers);
var modbusServer = new ModbusServer(registers);
modbusServer.Port = config.RootElement.GetProperty("modbusPort").GetInt32();
modbusServer.Run();