code cleanup and bugfixes

This commit is contained in:
Mikayla Fischler
2022-05-10 12:01:56 -04:00
parent d7e38d6393
commit 168341db39
12 changed files with 48 additions and 27 deletions

View File

@@ -14,6 +14,10 @@ local println = util.println
local print_ts = util.print_ts
local println_ts = util.println_ts
local PERIODICS = {
KEEP_ALIVE = 2.0
}
rtu.new_session = function (id, in_queue, out_queue)
local log_header = "rtu_session(" .. id .. "): "
@@ -97,7 +101,6 @@ rtu.new_session = function (id, in_queue, out_queue)
-- RTU unit advertisement
for i = 1, packet.length do
local unit = packet.data[i]
unit
end
else
log.debug(log_header .. "handler received unsupported SCADA_MGMT packet type " .. pkt.type)