How to configure an account for MQTT

To configure an account for MQTT, follow the instructions below:

Prerequisites

  • Access to IBM® webMethods Integration with the necessary permissions.

  • The details of the MQTT broker, including Broker URL, User ID, and Password.

Step-by-step guide to configure an account for MQTT

  1. Go to the desired workflow, and double-click on the Start icon to add the MQTT Trigger. Click Next.

  2. On the MQTT configuration page, click the + button next to Connect to MQTT. This will open the Add Account configuration page. Fill in the required fields to complete the configuration.

    • Login: This field determines the authentication method for the MQTT connection. The available options are:

      Login: Choose this option if you need to authenticate using a User ID and Password.

      Broker URL: Select this if your MQTT broker does not require authentication, or if authentication is handled separately.

    • Broker URL: Enter the Broker URL of the MQTT server you are connecting to. This URL should include the IP address or domain name and the port number of the MQTT broker, for example, mqtt://broker.example.com:1883.

      Important: If your connection is secure, use mqtts:// in the Broker URL. If the connection is not secure, use mqtt://.
    • User ID: If you selected the Login option, provide the User ID associated with your MQTT account.
    • Password: Enter the Password for the MQTT connection. If authentication is required, this will be used along with the User ID to establish the connection.
  3. Click Add to save the MQTT account configuration.

  4. Once the MQTT account is configured, specify the list of topic IDs for which you want to set up triggers on the MQTT configuration page. After entering the topic IDs, click Save.

Your workflow is now ready to use the MQTT trigger.