M2MqttUnity
M2MqttUnity copied to clipboard
M2MqttUnity not working with HiveMQ Broker
Hello,
The code works well for Eclipse IoT MQTT broker (iot.eclipse.org and mqtt.eclipseprojects.io), but if i try the MQTT project with other MQTT brokers like HiveMQ, the script is throwing an exception (screenshot attached).
Has anyone tried to use this package with a different MQTT broker other than Eclipse IoT Broker?
.
Hi @akshaysunagar did you manage to solve this problem? For the other brokers, it only seems to work when im using the port 1883 without encryption.
Hi @akshaysunagar i am also experiencing the same isssue. Did you managed to find a solution?
I get the same exception
Im also using HiveMQ, and encountered the same issue.
However, setting the Is Encrypted
option to True
(or ticking the box) seems to have solved the issue.
Hi @akshaysunagar did you manage to solve this problem? For the other brokers, it only seems to work when im using the port 1883 without encryption.
Hi @matthewgani, we used Node-RED REST API-to-MQTT work around to solve this. We are not using this M2MqttUnity anymore.
Im also using HiveMQ, and encountered the same issue. However, setting the
Is Encrypted
option toTrue
(or ticking the box) seems to have solved the issue.
Hi @Tomz295, this is good news! If this works, we do not the Node-RED workaround and can directly communicate with MQTT from Unity.
I will try this out and revert back. Thanks for posting your comment
Hello Everyone, the issue is solved now.
My MQTT broker had a username and password security credentials to connect to it. I added the username and password to M2MQTTUnityTest.cs and it is working as expected
I am closing this issue now