I try to search for Bridges with the Phillips Hue SDK but I get this error:
Cannot convert value of type '([NSObject : AnyObject]!) -> Void' to expected argument type 'PHBridgeSearchCompletionHandler!'
Heres my Code:
let bridgeSearch: PHBridgeSearching = PHBridgeSearching(upnpSearch: true, andPortalSearch: true, andIpAddressSearch: true)
func searchForBridgesLocal() {
self.bridgeSearch.startSearchWithCompletionHandler { (bridgesFound: [NSObject : AnyObject]!) -> Void in
}
}
I hope you can help.
Note: I´m using Swift 3