vmichalak / sonos-controller

Java API for controlling SONOS players
MIT License
43 stars 9 forks source link

Check if speaker is still online #26

Open KilianB opened 6 years ago

KilianB commented 6 years ago

Sometimes it can happen that a speaker looses connection to the network. Do we have a convenient way to check if a speaker is still online or is the only way to check by trying to get information periodically and catch an Exception if it's offline?

vmichalak commented 6 years ago

Very good question. For the moment, sonos-controller doesn't provide feature to check if the speaker is online. Add a "ping()" feature could be good.