See the logs of subsribe message on the Azure broker device (Azure IoT Hub)

Genadyne 1 Reputation point
2022-12-22T07:05:34.85+00:00

Hello Microsoft Community,

I am using Microsoft Azure cloud service to send the MQTT messages to the broker side (Azure) from our embedded device (MQTT client). The embedded device is also responsible to subscribe the messages from the broker side, as we have a website also, we send the messages to the Azure cloud for that embedded device, and corresponding to that, the embedded devices want to subscribe to that message from the Azure portal. I want to ask how can see the messages that the embedded device will subscribe to from the broker. I can see the logs on MQTT messages that are being sent by the embedded device to the cloud but can't send the messages to be subscribed by the embedded device. Please help me to see the subscribe messages.

Thanks.

Azure Internet of Things
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ali AlEnezi 1,081 Reputation points
    2022-12-22T07:14:04.26+00:00

    Hi,

    To see the messages that an MQTT client is subscribing to from the broker, you can use a tool such as MQTT.fx or MQTT Explorer. These tools allow you to connect to the broker as a client and view the messages being published and subscribed to in real-time.

    Alternatively, you can use the Azure IoT Hub Device Explorer tool to view the messages being sent to and from your devices. This tool allows you to view the messages being sent to and from your devices, as well as the messages being sent to and from the IoT hub.

    It's also possible to use the Azure portal to view the messages being sent to and from your devices. To do this, you can use the "Monitor" feature in the Azure IoT Hub blade to view the messages being sent to and from your devices.

    If you want to view the messages being subscribed to by the embedded device directly from the embedded device itself, you can use a MQTT library or client on the device to subscribe to the messages and view them in real-time.

    0 comments No comments

  2. Genadyne 1 Reputation point
    2022-12-22T10:25:18.86+00:00

    Hello,

    Can you please tell me how looks using the Monitor option in the Azure portal? I am unable to find the option to see the messages that need to be subscribed to by the MQTT client device.

    Thanks.


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.