From 417950a43b88f7d8a4bbbacea2d3f817c86e75c7 Mon Sep 17 00:00:00 2001 From: jtalborough Date: Wed, 18 Sep 2024 11:43:59 -0400 Subject: [PATCH] BREAKING CHANGE: remove outlet online feedback docs: update readme with new joinmap --- src/Devices/ApDevice.cs | 18 ------------------ src/JoinMaps/ApDeviceJoinMap.cs | 14 -------------- 2 files changed, 32 deletions(-) diff --git a/src/Devices/ApDevice.cs b/src/Devices/ApDevice.cs index 592b6e7..628b5c3 100644 --- a/src/Devices/ApDevice.cs +++ b/src/Devices/ApDevice.cs @@ -292,24 +292,6 @@ public override void LinkToApi(BasicTriList trilist, uint joinStart, string join feedback.LinkInputSig(trilist.StringInput[joinActual]); } - for (uint x = 0; x < joinMap.OutletOnline.JoinSpan; x++) - { - var outletIndex = x + 1; - var joinActual = outletIndex + joinMap.OutletName.JoinNumber; - - if (!EnableAsOnline) - { - BoolFeedback feedback; - if (!TryGetOutletOnlineFeedback(outletIndex, out feedback)) - continue; - Debug.Console(2, this, "Linking Outlet Online Feedback | OutletIndex:{0}, Join:{1}", outletIndex, - joinActual); - feedback.LinkInputSig(trilist.BooleanInput[joinActual]); - continue; - } - trilist.BooleanInput[joinActual].BoolValue = PduOutlets.ContainsKey((int)outletIndex); - - } for (uint x = 0; x < joinMap.OutletPowerOn.JoinSpan; x++) { diff --git a/src/JoinMaps/ApDeviceJoinMap.cs b/src/JoinMaps/ApDeviceJoinMap.cs index 2946e4e..d568812 100644 --- a/src/JoinMaps/ApDeviceJoinMap.cs +++ b/src/JoinMaps/ApDeviceJoinMap.cs @@ -46,20 +46,6 @@ public class ApDeviceJoinMap : JoinMapBaseAdvanced JoinType = eJoinType.Serial }); - [JoinName("OutletOnline")] - public JoinDataComplete OutletOnline = new JoinDataComplete( - new JoinData - { - JoinNumber = 50, - JoinSpan = 50 - }, - new JoinMetadata - { - Description = "Outlet Online", - JoinCapabilities = eJoinCapabilities.ToSIMPL, - JoinType = eJoinType.Digital - }); - [JoinName("OutletPowerOn")] public JoinDataComplete OutletPowerOn = new JoinDataComplete( new JoinData