I am using HUE-Emulator to view the changes.Emulator is running on port 80
.
Currently I am only able to view the details using browser.(API calls)
Now I want to switch off and switch on the lights using my app.But my code doesn't detect the bridge. I am not using any physical device. I am running my app in simulator.
Code I am using to find Bridges
- (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
}];
}
Links to Screen shots of my emulator to show everything works fine.
Config I am getting: