MQTT Publisher integration with Azure IOT Hub as subscriber

Treesa George 21 Reputation points
2022-12-29T01:07:12.747+00:00

I have a device which supports MQTT protocol. But the problem is I don't know how I can publish the topic messages to a broker because I don't have subscriber and a broker.

So, my question is can I use Azure IoT Hub as subscriber? Could you please advise on the MQTT Broker that can be used for integration for this POC?

The goal is it get that published topics daily and use it for analytics using PowerBI.

Please answer my question and share some use cases or documentation links. 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. chbeier 1,871 Reputation points
    2022-12-29T11:03:13.533+00:00

    Hello @Treesa George ,

    While IoT Hub is not a fully featured MQTT Broker, you can use any standard MQTT 3.1 client to publish messages to IoT Hub specific and pre-defined topics as well as subscribe to receive messages (commands) for the device.
    The following chapter on MQTT support in the IoT Hub documentation describes several ways of how to connect a device with MQTT as well as the available topics for bi-directional communication.
    To consume messages sent from a device to the cloud, your backend service needs to support AMQP to consume messages from the built-in endpoint as described in the docs. You can either use one of the SDKs or product integrations, e.g., Azure Functions, Azure Stream Analytics.

    A simple setup could be your device with an MQTT client publishing messages to IoT Hub, Azure Stream Analytics what is consuming these messages and sends the processed output to Power BI. There is a brief tutorial using an online Raspberry Pi simulator. If you connect your MQTT device as described in the docs and replace the Raspberry Pi Simulator, it should match your description.

    ----------

    If your issue is solved, please mark the best answer, and feel free to upvote to help others with a similar issue finding a solution.

    1 person found this answer helpful.

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.