Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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?
Regards.
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.
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.
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.
Hi, @PaiChung .
I try to attach the STATE OF TOGGLE BUTTON in my LED1 PROPERTY by Bollean Variable, from my Thing named Box.
I wanna do the arrow flux
Regards.
Telles.