Skip to main content
Nov 6, 2017 8:34 PM UTC
Question

MQTT Connection to Thingworx

Can I communicate directly from my edge device/gateway to ThingWorx via MQTT? If so, is there any documentation on configuring this connection?

6 replies

Nov 7, 2017 5:20 AM UTC

Christian Acosta​: Yes, you can check out our MQTT extension for details available on ThingWorx Marketplace.

-Durgesh

cacostaAuthor
Nov 7, 2017 1:31 PM UTC

Durgesh Patel Are there any examples of this extension being utilized? There aren't many details on that page or in the help center.

Nov 8, 2017 5:26 AM UTC

Christian Acosta​: You can refer the URL which demonstrate usage of MQTT if that helps build understanding. There is subtitle you might have to follow as video is not in English. ThingWorx: MQTT Part1 Getting started - YouTube

You can also check existing community thread for more details :

Using MQTT protocol in ThingWorx

-Durgesh

Nov 20, 2017 11:53 PM UTC

I followed the material, but where do I point the MQTT broker on my device/laptop/Linux box to publish data to?

the documents say something like this:

mosquitto_pub -h mythingbox -t /topic_branch/Value -m 20

mythingbox should be a real URL or IP Address right? 

Dec 26, 2018 9:30 PM UTC

I also have the same question. Did you solve it?

Dec 27, 2018 8:44 AM UTC

-h is defining the hostname. It defaults to localhost.

-p is defining the port. It defaults to 1883 for non-TLS connections and 8883 for TLS connections.

 

https://mosquitto.org/man/mosquitto_pub-1.html

 

Cheers,

Michael