Skip to main content
1-Visitor
October 5, 2021
Question

Linking Toggle Button With Thing Property in Thingworx

  • October 5, 2021
  • 1 reply
  • 2924 views

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.

1 reply

22-Sapphire I
October 6, 2021

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.

Telles1-VisitorAuthor
1-Visitor
October 6, 2021

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.

 

22-Sapphire I
October 6, 2021

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.