Azure IoT Hub MQTT connect error 5 (unauthorized)

Haris Papageorge 251 Reputation points
2021-07-21T12:32:06.38+00:00

Hi,

I have successfully connected with an MQTT client (MQTTfx) to an 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

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,272 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Murat 101 Reputation points
    2021-11-04T02:36:03.457+00:00

    There is a great article just solving the problem above

    https://paul-bruffett.medium.com/iot-azure-pipeline-9725ac2b6a00

    Solution components are:
    Arduino telemetry capture
    Azure IoT Hub
    Arduino Telemetry Capture
    Using Arduino MKRWifi1010 or Arduino MKR WiFi 1010


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.