code cleanup and bugfixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user