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>

View File

@@ -84,7 +84,7 @@
</Reference>
<Reference Include="SimplSharpReflectionInterface, Version=1.0.5583.25238, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpReflectionInterface.dll</HintPath>
<HintPath>..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpReflectionInterface.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />