-
Notifications
You must be signed in to change notification settings - Fork 0
BridgeScanner (Deprecated)
Maxi Zink edited this page Feb 3, 2022
·
1 revision
The current BridgeCredentaislScanner is deprecated. It will be replaced with the HueEvent System soon.
@Deprecated
void startScanning() {
BridgeDiscovery bridgeDiscovery = ServiceAccessor.accessService(BridgeDiscovery.class);
String bridgeIp = bridgeDiscovery.discoverBridgeIP();
BridgeScanner bridgeScanner = ServiceAccessor.accessService(BridgeScanner.class);
bridgeScanner.scanForHueBridgeCredentials(bridgeIp, hueBridgeCredentialsResponse -> {
//HANDLE LIKE THE USERNAME & CLIENTKEY
});
}