public class BridgeDiscovery
extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BridgeDiscovery.BridgeDiscoveryCallback
Callback for intermediary bridge search results.
|
Modifier and Type | Method and Description |
---|---|
static List<HueBridge> |
searchPortal()
Search for local bridges using the portal API.
|
static List<HueBridge> |
searchUPnP(int timeout,
BridgeDiscovery.BridgeDiscoveryCallback callback)
Search for bridges on the local network using UPnP, and
more specifically the SSDP protocol.
|
public static List<HueBridge> searchUPnP(int timeout, BridgeDiscovery.BridgeDiscoveryCallback callback) throws IOException
timeout
- time to search in millisecondscallback
- function to call when a new bridge is discovered (can be null)IOException
public static List<HueBridge> searchPortal() throws IOException
IOException