Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1.     using (var deviceDiscovery = new DeviceDiscovery())
  2.             {
  3.                 Console.WriteLine("Looking for Sky boxes:");
  4.                 boxIpAddresses = await deviceDiscovery.FindSkyBoxesAsync(ipAddresses, TimeSpan.FromSeconds(3));
  5.          
  6.             }
  7.  
  8.             if (!boxIpAddresses.Any())
  9.             {
  10.                 Console.WriteLine("No Sky Q boxes found!");
  11.             }
  12.  
  13.             foreach (var boxIpAddress in boxIpAddresses)
  14.             {
  15.                 Console.WriteLine($"{boxIpAddress}");
  16.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement