Forwarding MQTT messages from Iot Hub to Iot Central web endpoint

Spencer Ignatieff 6 Reputation points
2022-02-17T22:56:35.86+00:00

Hi, I have successfully set up a Iot Central application which I can send data to devices through a web endpoint. This was set up using https://github.com/Azure/iotc-device-bridge

I have been pushing data to the endpoint using python script running on another cloud provider and it works beautifully. Now, we want to move everything over to Azure to make the deployment more efficient and cheaper. However, with the Iot hub not being a full-fledged MQTT broker, I am a little lost on how to move this data to the web endpoint as I am new to Azure.

-I have tried triggering a function using the event grid trigger on the iot hub, but for some reason I can not get the incoming MQTT to pass through
-I have tried using an event to send the data to a web hook, but it fails to send back a confirmation causing a deployment error
-I have tried streaming the data to blob storage and then creating a function to take the data from that endpoint and pass it to the other, this method worked but the costs associated make switching not worth our while.

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
361 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,173 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 31,931 Reputation points MVP
    2022-02-18T12:44:02.55+00:00

    Hello @Spencer Ignatieff ,

    So you have devices that are talking MQTT.

    The Azure IoT Hub is not a regular MQTT broker but it is able to have devices connected using MQTT.

    The current support works but it needs some special care due to specific topic notation.

    Recently, Microsoft introduced this new MQTT5 support which is in public preview.

    I recommend checking out this version first before researching other scenarios.

    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.