Azure IoT Hub MQTT connect error 5 (unauthorized)

Hi,

I have successfully connected with an MQTT client (MQTTfx) to an Azure IoT Hub with no issues.

However when I try to do the same with my device (HL7800 from Sierra Wireless) I get a connect error 5.

What could be the problem here? I am using MQTT 3.1.1 on both occasions and the same username and clientID.

I created different devices to make sure it’s not something to do with multiple clients on the same device.

thanks

Hi,

On MS page, it says that devices communicate with the IoT Hub device endpoints using MQTT with port 8883 and all device communication with IoT Hub must be secured using TLS/SSL

Did you try to config TCP connection with port 8883 on your device? And also please check the supported cipher suite on your device and Azure.

Thanks,