Example
An example Data Stream that demonstrates how to use this Listener to return pump readings from an Azure Event Hub can be found below. The example is designed to work with the Azure Event Hub Action Agent example use case.
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the Azure Event Hub Listener onto the canvas, connect its output to the printer, and save the Data Stream.
Step 2: Configure General
Select the Agent and click Configure. Keep the default Collection and polling interval.
Step 3: Configure IoT Hub Details
Tick to use variables and add the authentication values: Event Hub Name and Endpoint, and Shared Access Key Name and Value.
Step 4: Configure Output Properties
We will manually enter the properties, but you could use a file definition. Click '+' to add the expected event properties.
This example uses the following properties:
ReadingNo, Long
PumpTemp, Double
Timestamp, DateTime
Step 5: Results
Apply the changes, save the Data Stream and publish it.
Let's look at the Live Data View. Observe that the data in the Listener example does not flow until the Action Agent example is published - then only the pump data is printed.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated