I recently installed the MQTT extension from the marketplace in the academic instance, but I am unable to use it.
The setup instructions in this thread MQTT support in ThingWorx are great, but my extension is not able to connect to the test.mosquitto.org server. (and not to my own mosquitto server as well)
In the application log the following error appears: Unable to connect to MQTT in [MQTTThing] : MqttException
What does "MqttException" mean?
Is it possible that the port 1883 is blocked in the instance? I tried with different other ports (80, 8080, 25), but none of them worked - is there a port that could be working? (i can adjust it on my mosquitto server)
Thank you very much,
We are currently working on this subject. We will get back to you as soon as we have an solution.
Also got the same issue, MQTT connect and publish are ok, but once add a subscibe-property mapping, I got "Lost MQTT Connection For [TestMqttConn] : Cause Was MqttException"
Is the problem fixed?
The extension is currently being modified by the R&D ThingWorx team to have it working on the Linux servers on which the Academic Instances are hosted. We don't have an estimate when it will be available unfortunately, but we will make an update to this post when it will be done.
Please check this support cases on more information on this issue
Thanks for your response.
I afraid I can't wait... Is there any workaround? Thanks.
Yes, there is a way to speed this up. I would need to contact our cloud services team for this and see if they are willing to help with making the MQTT extension work directly on your instance. What is the URL of your Academic ThingWorx instance ?
I cannot guarantee that this will be done, but we can try .
I met the similar situation as the original post.
However, I am not using Academic ThingWorx instance.
It's on my on-premise PoC environment.
Sorry for the late reply. I was on a business trip last week.
If you have access to the tomcat server on which ThingWorx is installed you can make the MQTT extension work on versions lower to TWX 6.0 by adding JAVA_OPTS="-Duser.dir=/tmp" directive to <tomcat_home>/catalina.sh file.
Or you can upgrade your instance to ThingWorx 6.0 or 6.6, as I understand these instances work fine with MQTT.
Unfortunately I am not very familiar with this extension and cannot help too much. I nevertheless hope you find this information useful.
It seems that there is the same problem on higher versions of TWX as well. Please see this ticket for more information on the solution.
Hi, I'm experiencing the same problems with connecting to the server using MQTT.
Here's my academic URL: https://nanyangpolytech5511.cloud.thingworx.com/Thingworx/Composer/