-
Notifications
You must be signed in to change notification settings - Fork 0
BridgeIP
Maxi Zink edited this page Feb 3, 2022
·
2 revisions
The BridgeDiscoveryService scans the network for a HueBridge. This also works with the website https://discovery.meethue.com.
@SneakyThrows
private void discoverBridgeIP() {
BridgeIpDiscovery bridgeIpDiscovery = ServiceAccessor.accessService(BridgeIpDiscovery.class);
String bridgeIp = bridgeIpDiscovery.discoverBridgeIP(); //Sync
List<String> bridgeIps = bridgeIpDiscovery.discoverAllBridgeIPs(); //Sync
String asyncBridgeIp = bridgeIpDiscovery.discoveryBridgeIPAsync().get(); //Async
List<String> asyncBridgeIps = bridgeIpDiscovery.discoverAllBridgeIPsAsync().get(); //Async
}