void device_IpInformationChange(GenericBase currentDevice, ConnectedIpEventArgs args) { if (currentDevice is GenericDevice && Devices[currentDevice as GenericDevice] is FusionStaticAsset) { if (args.Connected) { ((FusionStaticAsset)Devices[currentDevice as GenericDevice]).FusionGenericAssetSerialsAsset3.StringInput[1].StringValue = currentDevice.ConnectedIpList.First().DeviceIpAddress; } } }
private void AmOnIpInformationChange(GenericBase currentDevice, ConnectedIpEventArgs args) { if (!args.Connected) { return; } CloudLog.Notice("{0} has connected on IP {1}", currentDevice, args.DeviceIpAddress); if (currentDevice.ConnectedIpList.Count == 1) { _deviceIpAddress = currentDevice.ConnectedIpList.First().DeviceIpAddress; } }
void Device_IpInformationChange(GenericBase currentDevice, ConnectedIpEventArgs args) { if (currentDevice is CrestronApp) { // ignore } else { if (args.Connected) { ErrorLog.Notice("UI Device {0} with ID {1} is online with IP Address {2}", currentDevice.GetType().Name, currentDevice.ID.ToString("X2"), args.DeviceIpAddress); } else { ErrorLog.Notice("UI Device {0} with ID {1} is offline with IP Address {2}", currentDevice.GetType().Name, currentDevice.ID.ToString("X2"), args.DeviceIpAddress); } } FusionUpdate(); }
void deskSwitcherIpInformationChange(GenericBase currentDevice, ConnectedIpEventArgs args) { CrestronConsole.PrintLine("\n IP Information Change:\n Device: {0}\n Connected: {1} -> IPA: {2}\r\n", currentDevice, args.Connected, args.DeviceIpAddress); }