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);
This updates the switch on the driver side, however the client does not see the label change for the switch. When I disconnect and reconnect the client, the switch is now what the user entered.
How do I push the switch label change to the GUI so the user sees the new label?