Different types of units. Writing values, relay unit
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user