×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

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: 3 years 1 month ago by Fran.
3 years 1 month ago #68074

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

Time to create page: 0.240 seconds