Skip to main content
7-Bedrock
January 7, 2022
Solved

hi i need to switch on a led by using the button / checkbox

  • January 7, 2022
  • 2 replies
  • 1898 views

Hi i have interfaced the led with the thingworx and i'm using its prop in vuforia studio for the temp and humid values. I have the values but, i'm not able to switch on/off the led from vuforia studio. 

Kindly help with the code or suggest me with the changes that i need to make.

I'm attaching the screenshots below for your reference.

Best answer by sgreywilson

 

Looking at your studio image I don't see a binding to the setpropertyvalues this could be your initial issue

 

Although I would implement it differently 

 

I would build a wrapper service to toggle the led 

For example create a Thing called PropertyHelper and create a service called ToggleLED that sets the value of the newgatewyy LED property from the parameter supplied by studio

Set the toggle button to send true or false to the the ToggleLED  service and use the click event and bind the service ToggleLED

 

 

2 replies

16-Pearl
January 8, 2022

 

Looking at your studio image I don't see a binding to the setpropertyvalues this could be your initial issue

 

Although I would implement it differently 

 

I would build a wrapper service to toggle the led 

For example create a Thing called PropertyHelper and create a service called ToggleLED that sets the value of the newgatewyy LED property from the parameter supplied by studio

Set the toggle button to send true or false to the the ToggleLED  service and use the click event and bind the service ToggleLED

 

 

16-Pearl
January 21, 2022

u need to push the vuforia studio data to thingworx