question

Somiya-2815 avatar image
0 Votes"
Somiya-2815 asked SandervandeVelde42 commented

Check messages send to IoT Hub from edge device

Hi team,

Is there a way to check the content of the messages send to the IoT Hub from edge device?

azure-iot-hubazure-iot-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
1 Vote"
SandervandeVelde42 answered SandervandeVelde42 commented

Hello @Somiya-2815 ,

Are you curious about the content of messages sent to an IoT Hub?

Check out the free Azure IoT Explorer:

146609-image.png

Please add an extra consumer group to the IoT Hub built-in endpoint like 'explorer'.

If you use that $default while it's also reserved by another Azure service (eg. Time Series Insights or Stream Analytics) there is a 'collision' which results in missing messages and errors.



image.png (210.7 KiB)
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI @SandervandeVelde42 thank you for sharing !!I have installed the Azure IoT explorer and also added one endpoint explorer but I am not able to see the messages. It's showing in the loading state


147137-image.png


0 Votes 0 ·
image.png (67.3 KiB)

Hello @Somiya-2815 ,

did you also register that 'explorer' consumer group at the IoT Hub?

147240-image.png

Double-check if your device is sending data (IoT Hub shows increasing numbers of incoming messages (there is a delay in the charts at the Azure Portal Dashboard)).

0 Votes 0 ·
image.png (61.3 KiB)

Hi @SandervandeVelde42 I checked and I have the explorer consumer group but I am also seeing the below error on the terminal and on the dashboard I can see there are around 7k total messages

 Error: getaddrinfo ENOTFOUND iothub-ns-********-5044****-*******.servicebus.windows.net
 [1]     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
 [1]   name: 'MessagingError',
 [1]   retryable: false,
 [1]   code: 'ENOTFOUND',
 [1]   errno: -3008,
 [1]   syscall: 'getaddrinfo'
 [1] }


0 Votes 0 ·
Show more comments