Creating the MQTT Connection

To use this connector, you must first create an MQTT connection. The MQTT connection contains the parameters required to connect to the MQTT server. The MQTT connection is used by all the activities in the MQTT category.

The MQTT Publisher activity and MQTT Subscriber trigger reconnect automatically to the MQTT broker in an event of a connection failure. The client uses a cleanSession flag value of true. If the client is disconnected for any reason, all the messages from a previous session are lost.

Prerequisites

Before you create a connection, familiarize yourself with MQTT. For details about how to use the product, see MQTT documentation.

Procedure

  1. On the global navigation bar, click Connections and perform one of the following actions:
    • To add a connection for the first time, click the MQTT Connector card. You can search for a connector by typing the connector name in the search field.
    • If you have an existing connection and want to add a new connection, click Create.
  2. In the MQTT Connector dialog box, enter the connection details. For field descriptions, see the MQTT Connection Details topic.
  3. Click Save.
Related concepts