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

  1. Drag the Azure Digital Twin Context Provider onto the canvas.

  2. Rename the Agent and link the output endpoint to the printer

  3. Save the Data Stream.

  4. Double-click to configure the Agent.

Step 2: Configure Authentication

Enter the Authentication of your Azure Digital Twin

In this case, tick to use variables and select the authentication settings: Subscription Id, Tenant Id, Client Id, and Client Secret.

Step 3: Configure Digital Twin

Select the Host URL and Model for the Digital Twin event route.

In this case, select Host as Host URL and Pump as the Model.

Step 4: Results

Apply the changes, save the Data Stream, and publish it.

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