#40 RTU sequence number verification

This commit is contained in:
Mikayla Fischler
2022-04-29 10:19:05 -04:00
parent ef1fdc7f39
commit e833176c65
5 changed files with 72 additions and 35 deletions

View File

@@ -19,7 +19,7 @@ os.loadAPI("dev/boiler_rtu.lua")
os.loadAPI("dev/imatrix_rtu.lua")
os.loadAPI("dev/turbine_rtu.lua")
local RTU_VERSION = "alpha-v0.4.6"
local RTU_VERSION = "alpha-v0.4.7"
local print = util.print
local println = util.println
@@ -53,6 +53,7 @@ local __shared_memory = {
-- system objects
rtu_sys = {
rtu_comms = nil,
conn_watchdog = nil,
units = {}
},
@@ -203,6 +204,10 @@ end
local main_thread = threads.thread__main(__shared_memory)
local comms_thread = threads.thread__comms(__shared_memory)
-- start connection watchdog
smem_sys.conn_watchdog = util.new_watchdog(5)
log._debug("init> conn watchdog started")
-- run threads
parallel.waitForAll(main_thread.exec, comms_thread.exec)