adds DhcpEnabled feedback to SystemMonitor

This commit is contained in:
Andrew Welker
2020-03-24 19:08:25 -06:00
parent d7a04e202b
commit 3852617270
2 changed files with 9 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ namespace PepperDash.Essentials.Core.Monitoring
public StringFeedback CsIpAddress { get; protected set; }
public StringFeedback CsSubnetMask { get; protected set; }
public BoolFeedback DhcpEnabled { get; protected set; }
public SystemMonitorController(string key)
: base(key)
@@ -125,6 +127,12 @@ namespace PepperDash.Essentials.Core.Monitoring
? CrestronEthernetHelper.GetEthernetParameter(
CrestronEthernetHelper.ETHERNET_PARAMETER_TO_GET.GET_CURRENT_IP_MASK, CsAdapterIndex)
: String.Empty);
DhcpEnabled = new BoolFeedback(
() =>
CrestronEthernetHelper.GetEthernetParameter(
CrestronEthernetHelper.ETHERNET_PARAMETER_TO_GET.GET_CURRENT_DHCP_STATE, LanAdapterIndex) ==
"Enabled");
}
/// <summary>