IoT Hub MQTT API version

Dharmesh Joshi 21 Reputation points
2024-09-06T08:38:32.63+00:00

Hi All
I am using Azure IoT Hub with a standard MQTT protocol.

Specifing a username and password are part of the MQTT protocol. The user name also requires specifying the API version.

What effect does this API version have? As some older devices have been specified, an older API version compared to more recent api-version=2021-04-12?

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

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 36,766 Reputation points MVP Volunteer Moderator
    2024-09-06T10:01:53.8866667+00:00

    Hello @Dharmesh Joshi ,

    welcome to this moderated Azure community forum.

    The Azure IoT Hub is a cloud gateway to connect large amounts of devices while supporting two-way communication, with a secure identity for each device.

    Next to MQTTs, the IoT Hub also supports protocols like AMQPs and HTTPs (HTTP is not recommended).

    The IoT Hub is not a full MQTT broker and supports only a subset so the underlying device registration and communication work great.

    Check out this blog post on the interface, the security and topics supported by the IoT Hub.

    If you want to use an MQTT compliant broker, check out the full MQTT support for the Azure Event Grid.

    Check out this blog post on how to connect and consume the broker.

    Notice that the name-password login is not supported on this broker either. Microsoft supports logging in into the broker via certificates. This sounds complicated but this is not that hard, just follow along with the blog posts.

    Perhaps name-password access will be offered in the future.


    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.

    0 comments No comments

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.