An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
IoT Hub: Devices Not Reporting Online Despite Communication — Investigating Discrepancies
Problem description
I am experiencing an issue where my IoT Hub devices are not reporting their online status correctly. The devices appear to connect and send twin updates, but my platform continues to show them as offline or disconnected.
The issue is caused by Azure not sending the deviceConnected event, after deviceDisconnected event even though a device is connected and fully functional.
Environment
Azure IoT Hub in West Europe. The hub is routing device connection-state events, twin-change events, and lifecycle events.
What I've already tried
I compared device-side logs with the platform’s status records, providing timestamps and sequence information to illustrate the connect, disconnect, and twin-change events. I reviewed diagnostic information indicating potential maintenance-related temporary disconnects in the past 24 hours and observed that the hub successfully routed relevant events during that period. I also referenced standard IoT Hub guidance on connection-state tracking and intermittent disconnects, but the case does not specify whether those conditions were confirmed.
Current status
I am seeking assistance to understand why Iot Hub did not send a deviceConnected event (after sending disconnected event) for a device connected. Thus causing inconsistent status in the backend.
Example TimeLine:
Device is connected. deviceDisconnected event is sent and captured by our backend. While still connected, no other event is sent to us, meaning that the device remains offline in the backend.