Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
223 stars 74 forks source link

Issue reading from free IOT Hub tier? #218

Closed ms-vincent closed 4 years ago

ms-vincent commented 4 years ago

It appears that you can't use IoT Explorer to read telemetry from a free scale IoT Hub? I tried connecting a simulated device to a free Hub and used the explorer to view incoming telemetry but it sits there waiting for events indefinitely. When connecting the same simulator to an S1 Hub, telemetry comes flying in.

image

I'm running the latest version: 0.10.12

YingXue commented 4 years ago

Hi @ms-vincent The tool doesn't differentiate its behavior based on hub tier. The issue that you run into might be related to the limit of listeners allowed, as we are retrieving events from even hub, and this article may help you: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-features#consumer-groups.

ms-vincent commented 4 years ago

Thanks for the response @YingXue . That's what I thought about the free vs paid tiers as well.

I'm aware of the limits of listeners. My scenario is super basic and I've only got one reader which is configured to a consumer group I called "monitor". You can see the configuration in my screenshots below. Consumer Groups image

I used the RPi web simulator with the connection string set to my device: https://azure-samples.github.io/raspberry-pi-web-simulator/ image

and I changed the CG to the "monitor" one that I added: image

This was initially pointed out by a customer and I was able to replicate it in my own environment.

ms-vincent commented 4 years ago

Hi @YingXue any thoughts on this? I don't think this is related to consumer groups.

YingXue commented 4 years ago

Hi @ms-vincent We are not quite sure what's happening here, and we are not able to repro this issue yet. I would recommend try using our CLI 'monitor-event' command to verify if you are able to get the messages from the hub or not: https://github.com/Azure/azure-iot-cli-extension

ms-vincent commented 4 years ago

HI @YingXue, I created a new free hub and doesn't appear as though I'm experiencing the issue anymore. Not sure what was wrong with my customer or my own hub but appears as though it's resolved now so we can just keep this issue closed. Thanks for your responses!