×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

INDI 1.9.1 getProperties hangs indefinitely on Ubuntu 20.04

  • Posts: 2
  • Thank you received: 0
Hi all,
I'm running INDI 1.9.1 on Ubuntu 20.04. I have not tested this on a different Ubuntu version.

I'm writing an indi driver in C and when running it with INDI 1.9.1 the <getProperties version='1.7'/> hangs indefinitely. The driver is not responding and the GUI interface does not populate. 

When I downgrade to INDI 1.8.2 and run my driver with indiserver, the driver responds. I am able to see the properties I have defined in the GUI interface. 

Has anything changed with the getProperties function? Below is an example of my ISGetProperties hook.

/* INDI hook: ISGetProperties() */
void ISGetProperties(const char *dev) {
  // Check device
  if (dev && strcmp(MYDEV, dev)) return;
 
  // Define widgets
  IDDefSwitch(&connectSP, NULL);
  IDDefSwitch(&actionsSP, NULL);
  IDDefLight(&stateLP, NULL);
 
  if (!initialized) {
    driver_init();
    connectS[0].s = ISS_ON;
    connectS[1].s = ISS_OFF;
    connect_mirror_cover();
    IDSetSwitch(&connectSP, "Mirror cover is connected");
  }
}



 
Last edit: 2 years 6 months ago by Dan Avner. Reason: code formatting
2 years 6 months ago #75078

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

Time to create page: 0.286 seconds