Is Azure IOT Hub not a MQTT Broker like Mosquitto for Device to Device communication with topics

praveen 96 Reputation points
2021-02-09T15:43:58.117+00:00

Does Azure IOT hub behaves the same as Mosquitto Broker. Can't we have Device to Device communication with just topics like in Mosquitto Broker, Is it neccesary to write a function app / any routing mechanism to route messages from one device to device

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

Accepted answer
  1. praveen 96 Reputation points
    2021-02-10T05:24:22.697+00:00

    Thanks @Sander van de Velde | MVP . Below page

    https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#receiving-cloud-to-device-messages mentions

    The device does not receive any messages from IoT Hub until it has successfully subscribed to its device-specific endpoint, represented by the devices/{device_id}/messages/devicebound/# topic filter. After a subscription has been established, the device receives cloud-to-device messages that were sent to it after the time of the subscription.

    it means the device receive from a logic app which is sending messages to device. i mean if any Logic app with Cloud to Device persits, then only devices can receive it


2 additional answers

Sort by: Most helpful
  1. Sander van de Velde | MVP 31,211 Reputation points MVP
    2021-02-09T15:57:40.08+00:00

    Hello @praveen ,

    The Azure IoT Edge recently started to include a MQTT broker.

    have you seen this article already?

    0 comments No comments

  2. praveen 96 Reputation points
    2021-02-09T16:49:57.293+00:00

    Thanks @Sander van de Velde | MVP . My question is " Is Azure IOT HUB" not same as mosquito broker. In mosquito broker a device automatically receives to topics it subscribed. Will it happen same in Azure IOT HUB.
    OR
    A function app/ routing is needed to route messages from one Device to another Device ??
    Can't subscribed devices receive automatically to their subscribed topics ??