lifx-sdk-java icon indicating copy to clipboard operation
lifx-sdk-java copied to clipboard

Allow for passing flags in LFXClient.open

Open iheart2code opened this issue 10 years ago • 0 comments

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);

iheart2code avatar Jan 30 '15 19:01 iheart2code