From 3ffc79b18120de607223f3724e80df8ab9db0d74 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 27 Jul 2024 11:15:05 -0400 Subject: [PATCH] #530 fix RTU reconnection issue --- rtu/rtu.lua | 4 +++- rtu/startup.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rtu/rtu.lua b/rtu/rtu.lua index 231c261..ae09b01 100644 --- a/rtu/rtu.lua +++ b/rtu/rtu.lua @@ -571,7 +571,9 @@ function rtu.comms(version, nic, conn_watchdog) end end - public.unlink(rtu_state) + -- unlink + self.sv_addr = comms.BROADCAST + rtu_state.linked = false end self.last_est_ack = est_ack diff --git a/rtu/startup.lua b/rtu/startup.lua index e0f1616..5f53bee 100644 --- a/rtu/startup.lua +++ b/rtu/startup.lua @@ -31,7 +31,7 @@ local sna_rtu = require("rtu.dev.sna_rtu") local sps_rtu = require("rtu.dev.sps_rtu") local turbinev_rtu = require("rtu.dev.turbinev_rtu") -local RTU_VERSION = "v1.10.2" +local RTU_VERSION = "v1.10.3" local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE local RTU_UNIT_HW_STATE = databus.RTU_UNIT_HW_STATE