lifx-sdk-java
lifx-sdk-java copied to clipboard
Allow for passing flags in LFXClient.open
Currently we have two open modes:
- wait for all information
client.open(true)
- stream information as it comes in
client.open(false)
It would be great if we could have flags to allow for picking and choosing what open waits for. We could do something like this to wait for all light & group info before connection success.
LFXClient client = new LFXClient();
client.open(LFXConfig.ALL_LIGHTS | LFXConfig.ALL_GROUPS);