×

INDI Library v1.9.1 Released (26 Jun 2021)

Bi-monthly INDI Library v1.9.1 is released bringing a few new drivers and improvements to existing drivers.

PyIndi, how to check if the connection to indiserver is still up.

  • Posts: 1
  • Thank you received: 0
Hi. First post here!

I have a python script that connects to an <em>indiserver</em> with <strong>PyIndi</strong> and asks for values in a loop.
I had a problem when my internet connection crashed but the IndiClient was still returning the same data every time my loop asked for it.
I have tried to make a check to know whether or not the server is reachable / connected with PyIndi <code>isServerConnected()</code> but it always returns True once the first connection is set.

Is there any PyIndi method or something of sort that checks if the server is running after the first successful connection is set (without <code>connectServer</code> which would create a new conection at each iteration)?

It may be a silly question but I don't know or found right know any other way in PyIndi : (

Thanks in advance!

Edit:

I can check with other methods if the server is reachable, for example creating a socket to check it, but with PyIndi I don't know how to.
Last edit: 4 months 3 weeks ago by Fran.
4 months 3 weeks ago #68074

Please Log in or Create an account to join the conversation.

Time to create page: 0.275 seconds