Forum Discussion
ahinsen
Jan 11, 2022Copper Contributor
Does Azure Iot support dynamic sensor assignment?
In my case the history of objects should be shown based on a combination of sensor data and sensor-object assignment data. E.g. to show a car's location history using the drivers' phone's location da...
OlivierBloch
Jan 11, 2022Iron Contributor
Hi Andrew
Azure IoT Hub does not have a notion of "object" and "sensor". Each "thing" (we call it "device") connecting to the service has a unique identity and will send telemetry, synchronize its state and receive commands through that connection.
But Azure IoT Hub is just one element of a solution and all the data and meta data from devices can be sent to a time series service like Azure Data Explorer where you can work on the data, or (and it seems this might be an even better fit for you) to Azure Digital Twins where you can create models for your data and use the graph to query that data. Azure Digital Twins allows you to describe the relationship between twins and using the graph you can create, update and delete these relationships. Learn more about this here: https://docs.microsoft.com/en-us/azure/digital-twins/how-to-manage-graph
Azure IoT Hub does not have a notion of "object" and "sensor". Each "thing" (we call it "device") connecting to the service has a unique identity and will send telemetry, synchronize its state and receive commands through that connection.
But Azure IoT Hub is just one element of a solution and all the data and meta data from devices can be sent to a time series service like Azure Data Explorer where you can work on the data, or (and it seems this might be an even better fit for you) to Azure Digital Twins where you can create models for your data and use the graph to query that data. Azure Digital Twins allows you to describe the relationship between twins and using the graph you can create, update and delete these relationships. Learn more about this here: https://docs.microsoft.com/en-us/azure/digital-twins/how-to-manage-graph