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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How with help button which we create on mashup, send data on arduino? Help, please!!!

aanikeev
1-Newbie

How with help button which we create on mashup, send data on arduino? Help, please!!!

I create button on mashup, and now a i need in sending data on arduino, but instruction i not find. Help me, please!

3 REPLIES 3

Hi Aleksey,

What kind of data do you need to send to Arduino ? If you are using REST calls for this, you need to set up values for a Thing in ThingWorx and you then use get REST calls on your Arduino to retrieve them.

Hope this helps,

Veronica

Veronica, i need send value type bool, example send on arduino 1, if button was clicked, else otherwise nothing not send. But, i even don't understand, what need do on thingworx, which setting diffrent... May be you can write me, how i can do it? Otherwise yo can give me a link to the data source, where i can see a description of how it can be implemented? You are welcome! I would be very grateful to you for it!

Hi Aleksey,

You can use this approach:

1.  Create Thing with a Generic Template or a custom template that you created. Let's call this Thing1.

2. Create a boolean property for this Thing, name it myBoolProp.

3. Create a Mashup

4. Add a checkbox widget

5. Bring in the setProperty Service for the Thing1 in the Data binding area of the Mashup builder.

6. Bind the State attribute of the checkbox widget to the myBoolProp on the setProperty Service that you brought in at the previous step.

7. Trigger the setProperty Service by the Changed event of the checkbox widget.

8. Create a sketch on your Arduino Uno that makes constant get rest calls to read this property.

9. Parse the response from the rest call and store the returned value in a local variable on your sketch to use it as you need to.

Here is where you can find all the documentation you need for working with ThingWorx mashups, widgets and rest calls.

Digital Media Publisher

I hope this helps,

Veronica

Top Tags