Retrieving Data from an Existing Mosquitto MQTT Broker

Quentin STRINATI 20 Reputation points
2024-11-21T16:35:02.91+00:00

What are the steps to retrieve data from an existing Mosquitto MQTT broker?

I have no control on the broker, I only have the required information to subscribe to it.

I have found the documentation on Azure to be increasingly convoluted, making it difficult to understand the process. Any guidance or resources to simplify this would be appreciated.

Please bear in mind that it the first time that I use Azure as well as MQTT, and I cannot use something else.

Cheers

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
407 questions
Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
365 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,222 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
226 questions
Azure IoT Operations
Azure IoT Operations
Azure IoT Operations is a set of modular services enabled by Azure Arc.
34 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 33,951 Reputation points MVP
    2024-11-21T23:00:41.0166667+00:00

    Hello @Quentin STRINATI,

    welcome to this moderated Azure community forum.

    It is not simple to explain in this answer how to connect a (local) MQTT broker, retrieve data from it and have that data being send to the cloud via Azure IoT (or Azure IoT Central) if you have no experience with Azure IoT or MQTT.

    The documentation of Azure IoT is quite good and maintained well due to contributions from readers.

    I suggest you first learn about Azure IoT in general before you dive into your own project.

    These free MS Learn learning modules about Azure IoT will certainly help.

    Regarding your question, check out this blog post with an Azure IoT Edge approach.

    There you see how a custom Azure IoT Edge module is acting as a bridge between a regular (Mosquitto) MQTT broker and the cloud:

    User's image

    Keep in mind you need to gain knowledge about topics like IoT Hub, Azure IoT Edge, custom containers, message routing on the edge and enrollment of docker containers via the Azure IoT deployment manifest.

    The good news is that this can work for you.


    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 additional answers

Sort by: Most 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.