From 9e3922a9727ddfb40a844853b8334d44ab41e59a Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 18 Oct 2025 18:38:42 -0400 Subject: [PATCH] ppm wired modem list --- scada-common/ppm.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scada-common/ppm.lua b/scada-common/ppm.lua index 5aeebbe..d17fd41 100644 --- a/scada-common/ppm.lua +++ b/scada-common/ppm.lua @@ -479,6 +479,19 @@ function ppm.get_wireless_modem() return w_modem, w_iface end +-- list all connected wired modems +---@nodiscard +---@return { [string]: ppm_entry } modems +function ppm.get_wired_modem_list() + local list = {} + + for iface, device in pairs(ppm_sys.mounts) do + if device.type == "modem" and not device.dev.isWireless() then list[iface] = device end + end + + return list +end + -- list all connected monitors ---@nodiscard ---@return { [string]: ppm_entry } monitors