1

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

rmaddy
  • 314,917
  • 42
  • 532
  • 579
JnK
  • 21
  • 2

0 Answers0