How to connect azure IOT hub using a GSM module through MQTT? What are the certificates that should be downloaded into the device?

Saliya Dinusha 0 Reputation points
2024-11-10T09:46:53.6633333+00:00

I tried to connect with primary connection string and also tried with DigiCert Global Root G2 certificate. But it is not connecting to the IOT hub. I am triying this with AT commands

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

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 33,396 Reputation points MVP
    2024-11-10T18:50:19.8+00:00

    Hello @Saliya Dinusha ,

    welcome to this moderated Azure community forum.

    AT commands are just a way to configure your device.

    If that device expects a regular MQTT broker, this will probably not work...

    The IoT Hub uses MQTT to honour the abilities of the Device Twin (like desired, reported properties, direct methods, etc.) so only specific MQTT topics are supported, in a very specific way.

    Check this blog post explaining the IoT Hub MQTT abilities in detail.

    If you want to connect to a regular MQTT broker that follows the MQTT version 3 or version 5 specifications, please check the Event Grid MQTT broker.

    Notice that this services uses the G3 certificate alongside a client certificate for the client identity. A name/password combination is not supported (yet).


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


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.