Skip to main content
1-Visitor
April 20, 2017
Question

Using MQTT protocol in ThingWorx

  • April 20, 2017
  • 1 reply
  • 8333 views

Hi everyone,

I am currently working in developing some IoT demos by connecting TI SensorTags (it contains 10 different kinds of sensors) to ThingWorx. I have already installed the MQTT broker (Mosquitto) and imported the MQTT extension on TW.

In order to model my SensorTag as a Thing, based on the imported MQTT ThingTemplate, and then represent all the properties on mashup, I would need to figure out all the specific steps required to correctly configure and validate the connection between the broker and mobile app.

I would appreciate any reference guide or detailed description related to my issue.

Thank you in advance,

Ivan

1 reply

5-Regular Member
April 20, 2017
ilopez1-VisitorAuthor
1-Visitor
May 3, 2017

Hi Ankit,

Thanks for your hints: I have been able to configure the TW platform with the Mosquitto server on my laptop.

However, I am currently facing some communication issues as described below:

  • On the edge side: I have installed a MQTT Client Android app that, configured with Broker IP and port, communicates correctly with it. This has been just a trial, before connecting the TI SensorTag app, to figure out if the broker server was connectable or not.
  • On the platform side: ThingWorx is working correctly with the Mosquitto server and, putting some input values from Mosquitto, ThingWorx is able to receive them in real-time, and vice versa.

The facing issue relates to the fact that these two sides do not "speak" each other: sending some values from the MQTT Client mobile app to the Mosquitto server, they are not received by the TW platform. So, I am not able to figure if there is some connection configuration trouble.

Below the printscreen of the TW Log.

Thank you in advance,

Ivan