2023-04-12 16:40:13 +00:00
|
|
|
local config = {}
|
|
|
|
|
2023-06-07 16:25:50 +00:00
|
|
|
-- supervisor comms channel
|
2023-06-05 05:13:22 +00:00
|
|
|
config.SVR_CHANNEL = 16240
|
2023-06-07 16:25:50 +00:00
|
|
|
-- coordinator comms channel
|
2023-06-05 05:13:22 +00:00
|
|
|
config.CRD_CHANNEL = 16243
|
2023-06-07 16:25:50 +00:00
|
|
|
-- pocket comms channel
|
2023-06-05 05:13:22 +00:00
|
|
|
config.PKT_CHANNEL = 16244
|
2023-04-12 16:40:13 +00:00
|
|
|
-- max trusted modem message distance (0 to disable check)
|
|
|
|
config.TRUSTED_RANGE = 0
|
|
|
|
-- time in seconds (>= 2) before assuming a remote device is no longer active
|
|
|
|
config.COMMS_TIMEOUT = 5
|
2023-06-25 18:00:18 +00:00
|
|
|
-- facility authentication key (do NOT use one of your passwords)
|
|
|
|
-- this enables verifying that messages are authentic
|
|
|
|
-- all devices on the same network must use the same key
|
|
|
|
-- config.AUTH_KEY = "SCADAfacility123"
|
2023-04-12 16:40:13 +00:00
|
|
|
|
|
|
|
-- log path
|
|
|
|
config.LOG_PATH = "/log.txt"
|
|
|
|
-- log mode
|
|
|
|
-- 0 = APPEND (adds to existing file on start)
|
|
|
|
-- 1 = NEW (replaces existing file on start)
|
|
|
|
config.LOG_MODE = 0
|
2023-05-10 20:57:23 +00:00
|
|
|
-- true to log verbose debug messages
|
|
|
|
config.LOG_DEBUG = false
|
2023-04-12 16:40:13 +00:00
|
|
|
|
|
|
|
return config
|