#647 rtu gateway status light functionality

This commit is contained in:
Mikayla Fischler
2025-11-15 23:06:04 -05:00
parent 7f951a985b
commit 68ae061ed3
3 changed files with 34 additions and 4 deletions

View File

@@ -51,11 +51,11 @@ local function init(panel, config, units)
local system = Div{parent=panel,width=14,height=term_h-5,x=2,y=3}
local on = LED{parent=system,label="STATUS",colors=cpair(colors.green,colors.red)}
local status = LED{parent=system,label="STATUS",colors=cpair(colors.green,colors.red)}
local heartbeat = LED{parent=system,label="HEARTBEAT",colors=ind_grn}
on.update(true)
system.line_break()
status.register(databus.ps, "status", status.update)
heartbeat.register(databus.ps, "heartbeat", heartbeat.update)
if config.WirelessModem and config.WiredModem then