Updating the digital twin
This section will describe what we need to get the digital twin updated in Azure Digital Twins, as shown in Figure 11.1. We will start by updating the current sensor model with a property for storing the sensor data coming from the demo sensor. Then we need to create a storage account that is used by an Azure function to get data from Azure Service Bus. The Azure function is created by using Visual Studio and is published to an Azure function placeholder in Azure. Finally, a digital twin is created from the model and will receive the sensor data from the demo sensor:
Finally, a digital twin is created from the model and will receive the sensor data from the demo sensor.
Updating the sensor model
Our initial project contains a model for a sensor. But that model does not yet contain any defined properties. Since we need to update a digital...