我使用HUE-Emulator查看更改。模拟器正在运行port 80
。如何打开和关闭飞利浦HUE灯
目前我只能查看使用浏览器的细节。(API调用)
现在我想关掉,用我的app.But我的代码没有检测到桥梁上的灯开关。我没有使用任何物理设备。我正在模拟器中运行我的应用程序。
代码我使用发现桥梁
- (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
}];
}
链接到屏幕我的模拟器截图显示一切正常。
配置我越来越:
请打开'http:// localhost:8000/api/newdeveloper'后更新配置问题 – ZeMoon 2015-04-01 10:53:21
@ZeMoon我更新了我的问题 – Dalvik 2015-04-01 11:50:10