janstol / yeedart

Simple Dart library that lets you control Yeelight devices over LAN.
MIT License
10 stars 4 forks source link

Error when starting search without internet connection #16

Open guyluz11 opened 1 year ago

guyluz11 commented 1 year ago

Whenever my program is starting to search devices using yeedart without an internet connection I am getting this error

SocketException: Send failed (OS Error: Network is unreachable, errno = 101), address = 0.0.0.0, port = 1982

Not sure what is the expected behavior but let's discuss it. I think it will be more appropriate to return empty results as if the package didn't find any device.

Ryeori commented 1 year ago

i've had the same but with dfferent errno = 65 on mac with connect debug iphone, i've tried to switch networks, turn on and off hotspon and connect macbook to it, but no results.

guyluz11 commented 1 year ago

I think you have a different error