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");
}
}
Hey Jasem, thanks for the reply. We have a workaround for now (basically refreshing the browser window for our web based GUI).
In the future, do you have recommendations for what property we should use to accomplish our original goal of allowing users to update labels of filters in our control GUIs?
I can think of some workarounds, but I wonder if INDI supports this in any way.
Read More...
Hello,
I have an Indi client that allows users to enter a new name for a switch property (basically changing the filter names in the filter wheel).
I need to update the switch with the entered user text.
// lfS[0] is the switch that needs its label updated
// lfSP is the switch vector property
strcpy( lfS[0].label, user_input);
IDSetSwitch(&lfSP, NULL);