Hi Marlene,
Based on the mentioned link:
"The Azure IoT Hub doesn't send every single connection state, but publishes the current connection state taken at a periodic snapshot of 60sec until the flickering stops."
In other words, if the device is connected and after 5 seconds is disconnected and then again the device is connected, the IoT Hub will emit only one event message to the AEG such as an eventType = Microsoft.Devices.DeviceConnected.
Note, that the time 60 seconds for snapshotting a device connection state is not configurable.
Thanks
Roman
Hi Roman,
thanks a lot for your response!
I read the docs but I can't apply it to my case. I connect to the hub using azure-iot-devcie SDK via MQTT over Ws. Once connected, I send device-to-cloud telemetry messages by calling the client's sendEvent function. Nonetheless, I can send multiple messages before the Device.Connected event arrives. Even if I don't send any telemetry messages, it takes several seconds for the device connection state events to arrive at the webhook. I can't tell any difference in the time duration of the Connected event when I send telemetry messages or not.
I look forward to hearing from you,
Marlene