Skip to content
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

Empty result from .discover() #1

Closed
fmichenaud opened this issue Feb 15, 2020 · 1 comment
Closed

Empty result from .discover() #1

fmichenaud opened this issue Feb 15, 2020 · 1 comment

Comments

@fmichenaud
Copy link
Contributor

Hi.

I'm relatively new to Dart so it might be just me, but i can't get the .discover() method to work correctly.

For instance:

Future<void> _fetchLights() async { List<DiscoveryResponse> devices = await Yeelight.discover(); print(devices); }

always shows an empty array, even with a 30s timeout.
All of my lights have LAN control enabled and I can control them with the library through their IPs, but I can't discover them through my Flutter app.

Am i doing something wrong, or maybe it is a dev environment issue ?

@fmichenaud
Copy link
Contributor Author

#2 has solved my issue.

@janstol janstol closed this as completed Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants