Jordi Herms created a new topic ' Change UISwitchVector label' in the forum. 3 years ago

Hi,

I want to develop an improved version for the DragonFly controller, so that I can send a pulse to open and close the roof when that dragonfly relay is configured to send a pulse. Now it only opens the relay until the sensor is closed, which no works in all scenarios.

I am getting the data from each relay correctly, but now I want to change the label of each relay, so instead to show "Relay #1", the driver shows "Lights", for example. But I'm not able to change the layer of the switch vector, in this page seems that there's a function to change the label 
www.indilib.org/api/structINDI_1_1Widget...bbf13508c3274ec66e52

error: no member named 'setLabel' in '_ISwitchVectorProperty'                    
Relays->getRelaySP()->setLabel("d");                     

can anyone give me some indications?

thanks
 


Read More...