2022-05-29 18:34:09 +00:00
|
|
|
local config = {}
|
|
|
|
|
|
|
|
-- port of the SCADA supervisor
|
|
|
|
config.SCADA_SV_PORT = 16100
|
|
|
|
-- port to listen to incoming packets from supervisor
|
2023-04-20 00:35:42 +00:00
|
|
|
config.SCADA_SV_CTL_LISTEN = 16101
|
2022-05-29 18:34:09 +00:00
|
|
|
-- listen port for SCADA coordinator API access
|
|
|
|
config.SCADA_API_LISTEN = 16200
|
2023-02-07 22:31:22 +00:00
|
|
|
-- max trusted modem message distance (0 to disable check)
|
|
|
|
config.TRUSTED_RANGE = 0
|
2023-02-13 17:29:59 +00:00
|
|
|
-- time in seconds (>= 2) before assuming a remote device is no longer active
|
2023-04-18 17:55:18 +00:00
|
|
|
config.SV_TIMEOUT = 5
|
|
|
|
config.API_TIMEOUT = 5
|
2022-12-06 16:40:13 +00:00
|
|
|
|
2022-07-06 03:48:01 +00:00
|
|
|
-- expected number of reactor units, used only to require that number of unit monitors
|
2022-05-29 18:34:09 +00:00
|
|
|
config.NUM_UNITS = 4
|
2022-12-06 16:40:13 +00:00
|
|
|
|
2022-12-04 19:29:39 +00:00
|
|
|
-- alarm sounder volume (0.0 to 3.0, 1.0 being standard max volume, this is the option given to to speaker.play())
|
|
|
|
-- note: alarm sine waves are at half saturation, so that multiple will be required to reach full scale
|
|
|
|
config.SOUNDER_VOLUME = 1.0
|
2022-12-06 16:40:13 +00:00
|
|
|
|
|
|
|
-- true for 24 hour time on main view screen
|
|
|
|
config.TIME_24_HOUR = true
|
|
|
|
|
2022-05-29 18:34:09 +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
|
2022-12-06 16:40:13 +00:00
|
|
|
|
2022-05-29 18:34:09 +00:00
|
|
|
return config
|