fixed RTU authkey check

This commit is contained in:
Mikayla Fischler 2023-11-14 19:40:55 -05:00
parent 4a2199fa13
commit 8fe0321ac0

View File

@ -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.7.0"
local RTU_VERSION = "v1.7.1"
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
local RTU_UNIT_HW_STATE = databus.RTU_UNIT_HW_STATE
@ -84,7 +84,7 @@ local function main()
ppm.mount_all()
-- message authentication init
if type(config.AuthKey) == "string" then
if type(config.AuthKey) == "string" and string.len(config.AuthKey) > 0 then
network.init_mac(config.AuthKey)
end