Example

This example demonstrates how to use this Action Agent to publish temperature readings to an XMQ Listener in a different Data Stream. It is designed to work with the XMQ Listener Example.

Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the XMQ Agent onto the canvas, link the input endpoint to the Event Simulator, and save the Data Stream.

Step 2: Configure General

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

Step 3: Configure Settings

Set the Identity to "AGENT 1", and set the Address to any port on the 127.0.0.1 host with the TCP protocol. This example uses tcp://127.0.0.1:3339.

Step 4: Configure Authentication

Tick the Use Authentication box, then click Generate Key. Once here, click the Generate New Key button. Then, select and copy the entire value, store it in a secure Variable or a temporary location for later use, then enter the value into the Server Key field.

Alternatively, if you have previously generated a Server Key that you wish to apply, enter it into the Server Key field. Please see the XMQ Listener example for a demonstration.

Step 5: Results

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

Let's look at the Live Data View. The XMQ Agent is sending data. To view the data being received, please view or run the XMQ Listener example.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated