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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Remote code & sends data to MQTT

Janicen
16-Pearl

Remote code & sends data to MQTT

Hello, everyone.

 

I am trying to write a code (remotely) that updates the values of the properties inside of my json object. Then I want to take these values and send it to MQTT.

 

My questions are:

1. how do I go about writing the remote code? (which language would you suggest for this scenario). 

2. How do I send these values to MQTT? 

 

I will really appreciate your suggestions.

Thank you

 

ACCEPTED SOLUTION

Accepted Solutions
VladimirRosu
19-Tanzanite
(To:Janicen)

Hi @Janicen ,

Tough questions.

Question number one is not a ThingWorx specific question, because almost any programming language out there has the capability to execute HTTP REST calls. You should know which is the language you are familiar with, then search how to execute HTTP REST calls, then update the Thing values via executing a service (most probably). I will not explain in detail how to do REST calls, because it has been explained many times in this forum and it is easily searchable.

For question number two, you can use the MQTT extension in order to sent values to an MQTT broker topic. Again, there is information about that in the community/support portal/help center.

View solution in original post

1 REPLY 1
VladimirRosu
19-Tanzanite
(To:Janicen)

Hi @Janicen ,

Tough questions.

Question number one is not a ThingWorx specific question, because almost any programming language out there has the capability to execute HTTP REST calls. You should know which is the language you are familiar with, then search how to execute HTTP REST calls, then update the Thing values via executing a service (most probably). I will not explain in detail how to do REST calls, because it has been explained many times in this forum and it is easily searchable.

For question number two, you can use the MQTT extension in order to sent values to an MQTT broker topic. Again, there is information about that in the community/support portal/help center.

Announcements


Top Tags