azure-iot-explorer icon indicating copy to clipboard operation
azure-iot-explorer copied to clipboard

Telemetry from device that has NOT been selected.

Open codeputer opened this issue 1 year ago • 4 comments

Describe the bug Start Telemetry from a device (in my case GFSDev002), and I'm getting telemetry from device GFSDev001.

To Reproduce Each device has its own connection string. image

Expected behavior Starting telemetry for GFSDev002, should only show Telemetry sent by GFSDev002.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10
  • OS Version: 10
  • App version: alpha

Additional context I'm thinking the IOT Explorer is subscribing to the Consumer Group, rather than the device? If so, then the title is confusing as it clearly states it Telemetry from GFSDev002.

codeputer avatar Jul 24 '23 22:07 codeputer

I've had this happening to me as well. Steps to reproduce:

  1. Listen to device A's Telemetry
  2. Instead of pressing "Stop", return to the "Devices" list
  3. Start listening to device B's Telemetry

Result: device A's telemetry is shown in between device B's telemetry.

Suspect: Forgot to unsubscribe from telemetry after navigating away from a device's telemetry page?

Workaround: Always remember to press "Stop" before returning to the devices list for now

tverschoof-axians avatar Aug 17 '23 06:08 tverschoof-axians

Seen this happen many times, but didn't realize the sequence of events to cause it. This is definitely a bug!

codeputer avatar Aug 17 '23 12:08 codeputer

same here

bmasotta-lcg avatar Nov 01 '23 15:11 bmasotta-lcg

Event hub does not support filtering on device. Yes we can only subscribe to the Consumer Group like @codeputer you've pointed out. We do unsubscribe when the component unmount (when the page closes), but there will be a lag. As long as the telemetry won't keep showing after about 10s, we will not able to fix this issue due the constraints we face.

YingXue avatar Mar 29 '24 16:03 YingXue