Jump to content

Force a reconnect


yaksplat

Recommended Posts

yaksplat

If the server disconnects, and the pi is headless, is there any way to force a reconnect without logging in?  Or are you better off just rebooting the pi if there's no session found?

Link to comment
Share on other sites

yaksplat

So far that's not working.  It vanishes from the active session list.  I may end up just doing a session query on some interval and then sending a reboot if it comes back with an empty session list for that device.

Edited by yaksplat
Link to comment
Share on other sites

Ok so yes if you want to remote control it, then you will need to intervene in order to re-establish the connection required for that.

Link to comment
Share on other sites

yaksplat

Turns out that if you do a Get on the Session, it forces a reconnect and the Pi appears as an active client again.  If it's done before each POST to play then the post command causes the audio to play immediately.

Link to comment
Share on other sites

  • 3 weeks later...
yaksplat

Put this in another thread, but it fits better here, and for searching reasons as well

Occasionally Theater will not play back.  The session is still there, you can do a post to play a song, but it will only give out a droning hum with no proper response.  At this point a reboot is the only thing that fixes the issue.  

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...