# Set Up an MQTT Connection

You can set up data forwarding through an MQTT connection from the Data Forwarding page. Data forwarding through MQTT only supports transferring results data. To set up the connection, you need to provide the details of your MQTT broker.

## Prerequisites

Before you start, ensure that the following prerequisites are met:

- The Unit is connected to the local network.

- You are subscribed to the devices from which you intend to forward data.

- The details of your MQTT broker are available.

## Procedure

To set up an MQTT connection:

1. Click Create Connection on the Data Forwarding page.

2. Choose MQTT.

3. Configure your connection:

   1. Provide the Connection Name.

   2. Optionally, to help differentiate between connections, provide a custom Client ID.

   3. Choose the Authentication Method from the drop-down menu. Once you have selected the authentication method, the Connection Settings section appears in the page.

   Note: If you select TLS, you must upload a CA certificate. If you select mTLS, you must upload a CA certificate and a Client pfx.

4. Enter the connection details, QoS, and Protocol Version for the MQTT broker.

5. Choose the application data you want to forward and from which device. Under Device Data and Tunnel Data, you can choose specific data from each device by checking the corresponding box.

6. Click Save.

Your connection is now listed on the Data Forwarding page. You can edit, pause, and delete connections here.