Search code examples
azureazure-iot-hubazure-eventhubazure-sphere

Device messages are being used but are not forwarded to builtin endpoint in Azure IOT Hub


I am a novice using Azure Iot Hub, and am trying to send messages from an Azure Sphere device to IotHub.

If I look at the Metrics section in IotHub, i can see tht for the metric "Total Number of messages used", records are indeed arriving.

If however I look at the "Routing Messages Delivered to messages/events", I can see that none were delivered.

enter image description here

I did not add any custom routing in iothub, so it should be using the built-in endpoint to insert the messages, correct?

Furthermore, I can see the data if I go to "Query explorer" , but I don't see any events when using the az iot hub monitor-events --hub-name HubName --output table` command.

What could possibly be causing this? Do I need to explicitly redirect the messages to the built-in endpoint?

Thank you.


Solution

  • Turns out it was an error in my device twins JSON configuration. There was a key that was lower case but should be upper case, and was preventing the device from sending telemetry.