add logic to update device info when IP-ID comes online

This commit is contained in:
Andrew Welker
2020-11-10 09:23:51 -07:00
parent 3c60dfdf7b
commit 5076ba405e
2 changed files with 5 additions and 1 deletions

View File

@@ -42,7 +42,9 @@ namespace PepperDash.Essentials.DM.Endpoints.DGEs
_dgeEthernetInfo.DeviceExtenderSigChange += (extender, args) => UpdateDeviceInfo();
_dgeEthernetInfo.Use();
DeviceInfo = new DeviceInfo();
DeviceInfo = new DeviceInfo();
_dge.OnlineStatusChange += (currentDevice, args) => { if (args.DeviceOnLine) UpdateDeviceInfo(); };
_dc = dc;