-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networkContext.getAllLightsCollection().getLights() returns 0 #12
Comments
You should really add a listener to the getAllLightsCollection() otherwise you are just relying on getting lucky and a bulb being found in between when you connect and when you call get all lights. You then don't need to worry about timings and such. Some snippets from my controller fragment below:
|
the log events don't change for me. I don't get the |
If you are going to pick up the nextworkContextDidConnect then that's a different listener, you'll need to add "implements LFXNetworkContextListener" and whilst many things are broken in the libs then the nextworkContextDidConnect/Disconnect() is working here. According to Jarrod there is a lib update coming soon. |
Thanks for replying here Cakey, I'm working on an update for the API asap to fix some of the issues you guys are seeing. |
If use the sample code and do this:
bublList
is 0 where I expected it to be 1If I use the SampleSDK I can see the bulb in the
LFXSDKLightListAdapter
and turn it on and off.If I turn it on using the SampleSDK or the official app, my app returns 1.
Am I doing something incorrectly?
Edit: I just noticed something else. If I close the app, and restart it sometimes it returns a bulb, however if I redeploy the app it returns 0.
Sometimes when I open after sometime, it does return 1.
How long does it take to get the list and how do I know when it gets a response?
The text was updated successfully, but these errors were encountered: