M2MqttUnity icon indicating copy to clipboard operation
M2MqttUnity copied to clipboard

M2MqttUnity not working with HiveMQ Broker

Open akshaysunagar opened this issue 3 years ago • 1 comments

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? 2021-11-10_19h59_21 .

akshaysunagar avatar Nov 10 '21 14:11 akshaysunagar

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.

matthewgani avatar Mar 06 '22 06:03 matthewgani

Hi @akshaysunagar i am also experiencing the same isssue. Did you managed to find a solution? I get the same exception image

BurakKaragol avatar Jan 17 '23 17:01 BurakKaragol

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.

Tomz295 avatar Jan 25 '23 20:01 Tomz295

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.

akshaysunagar avatar Jan 26 '23 05:01 akshaysunagar

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 @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

akshaysunagar avatar Jan 26 '23 05:01 akshaysunagar

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

Screenshot 2023-11-07 at 8 21 17 PM Screenshot 2023-11-07 at 8 21 17 PM

akshaysunagar avatar Nov 07 '23 14:11 akshaysunagar