cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Linking Toggle Button With Thing Property in Thingworx

Telles
13-Aquamarine

Linking Toggle Button With Thing Property in Thingworx

Hi, Team!
I looking for a way to send a boolean variable to my microcontroller.

I try to linked the Property Thing LED1 to Toogle Button, but isn´t work.

How I can link the Toogle Button with Toogle Button?

Telles_0-1633461856916.png


Regards.
Telles.

4 REPLIES 4
PaiChung
22-Sapphire I
(To:Telles)

Values that come in from GetPropertyValues (getter) are the values that are read from the Property.

To have two way interaction, you will need a 'setter' service to take the value back and apply it back to the Property.

 

I think ... if you want to accomplish this with a toggle, you'll want to 

getter -> mashup parameter -> toggle

mashup parameter toggle value on change event to do the setter

Be sure to account for the fact that the getter may change the value as well and cause a trigger - I would validate that setter value != property value before applying value.

Telles
13-Aquamarine
(To:PaiChung)

Hi, @PaiChung !
Thanks for aswer me!
Trying to do yours steps but isn´t work, like printscreens.
The refresh updating, I just doing in Gauges, it´s easy and I believe doint it as same way.
The first step is just implement the Bollean Variable to Toogle Button.


Regards.
Telles.

 

PaiChung
22-Sapphire I
(To:Telles)

I do not see the use of a Mashup Parameter in your wiring. Currently I'm just seeing you bind your getpropertyvalues to the toggle and then to the label. With this approach you won't be able to do a getter/setter functionality the way I described it.

Telles
13-Aquamarine
(To:PaiChung)

Hi, @PaiChung .
I try to attach the STATE OF TOGGLE BUTTON in my LED1 PROPERTY by Bollean Variable, from my Thing named Box.

Telles_0-1633605757423.png

Telles_0-1633608260605.png

 I wanna do the arrow flux


Regards.
Telles.

 

Announcements


Top Tags