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.
Drag the Azure Event Hub Listener onto the canvas, connect its output to the printer, and save the Data Stream.

Select the Agent and click Configure. Keep the default Collection and polling interval.

Tick to use variables and add the authentication values: Event Hub Name and Endpoint, and Shared Access Key Name and Value.

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

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.

File | Link | Security Key |
---|---|---|
Listener
Data Stream | Azure Event Hub Listener.xuc | C0mp|ex123 |
Action Agent
Data Stream | Azure Event Hub Action Agent.xuc | C0mp|ex123 |
Last modified 1yr ago