我正在使用HUE-Emulator查看更改。Emulator 正在运行port 80
。
目前我只能使用浏览器查看详细信息。(API调用)
现在我想使用我的应用程序关闭和打开灯。但我的代码没有检测到网桥。我没有使用任何物理设备。我正在模拟器中运行我的应用程序。
我用来查找桥梁的代码
- (void)viewDidLoad {
[super viewDidLoad];
self.phHueSDK = [[PHHueSDK alloc] init];
[self.phHueSDK enableLogging:YES];
// Call startUpSDK which will initialize the SDK
[self.phHueSDK startUpSDK];
self.bridgeSearch = [[PHBridgeSearching alloc] initWithUpnpSearch:YES andPortalSearch:YES];
// Start search for bridges
[self.bridgeSearch startSearchWithCompletionHandler:^(NSDictionary *bridgesFound) {
NSLog(@"sadsdsa %@",bridgesFound); //Logs Null
}];
}
链接到我的模拟器的屏幕截图,以显示一切正常。
我得到的配置: