我使用了以下链接Nuget for HueApi 中的示例
static void Main(string[] args)
{
IBridgeLocator locator = new SSDPBridgeLocator();
//For Windows 8 and .NET45 projects you can use the SSDPBridgeLocator which actually scans your network.
//See the included BridgeDiscoveryTests and the specific .NET and .WinRT projects
IEnumerable<string> bridgeIPs = locator.LocateBridgesAsync(TimeSpan.FromSeconds(5)).GetAwaiter().GetResult();
foreach (var bridgeIp in bridgeIPs)
{
Console.WriteLine(bridgeIp);
}
Console.ReadLine();
}
当我运行此控制台应用程序时,它找不到网桥 IP 地址。有人可以解释我做错了什么吗?我确认飞利浦 Hue 的网桥工作正常。
如何在网络中自动找到 Philips Hue 网桥?
我应该在哪些凭据上运行控制台应用程序?