Example
This example demonstrates how to use this Context Provider to output contextual pump data from an Azure Digital Twin instance. The context data could later be combined with the pump readings.
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the Azure Digital Twin Context Provider Agent onto the canvas, link the output endpoint to the printer, and save the Data Stream.
Step 2: Configure General
Select the Agent and click Configure. In this case, keep the default Collection and polling interval.
Step 3: Configure Authentication
Tick Use Variables and select values for Tenant Id, Client Id, and Client Secret.
Step 4: Configure Digital Twin
Select the Endpoint Url variable and Model Name. In this case, the model is 'Pump'.
Apply the changes and save the Data Stream.
Step 5: Results
Publish the Data Stream and let's look at the Live Data View. Observe that the contextual data from the Azure Digital Twin instance is fetched and printed.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated