Stefan Baar created a new topic ' PyIndi without IndiClient class' in the forum. 4 years ago

I would like to know, whether it is possible to communicate with a CCD through PyIndi without having to construct a IndiClient class and only using functions.

E.g.

class IndiClient(PyIndi.BaseClient):
def __init__(self):
super(IndiClient, self).__init__()
self.logger = logging.getLogger('IndiClient')
self.logger.info('creating an instance of IndiClient')

....

indiclient=IndiClient()
indiclient.setServer("localhost",7624)


why can't I just ?

indiclient=PyIndi.BaseClient()
indiclient.setServer("localhost",7624)

Is there anyway to get around using classes?

Read More...