We have the following architecture configured:
- IoT Hub consumes telemetry from devices;
- Devices do not send their ID in the telemetry data. They only send sensor data;
- Timeseries Insights is set up to auto consume events from IoT Hub;
- A back-end web application is showing raw data from devices using TSI JSON queries.
Our issue:
At the back-end application we are trying to filter events by device ID. Here is the tricky thing. If the device ID is present in the telemetry, filtering is easy. However, what predicate should we use to filter on device ID when it is not present in the telemetry. Azure documentation defines only two built-in properties ($esn
and $ts
), but we can clearly see that in the response values, one of the values is the Device ID. But what is the name of the property so that we can include it in a query predicate?
Thank you!