1. Home
  2. ...
  3. Messaging and Notification
  4. c Paho MQTT and Paho MQTT5

c Paho MQTT and Paho MQTT5

Available connectors

Paho MQTT

The Paho component enables integration of applications with the MQTT protocol, facilitating communication between devices and systems in Internet of Things (IoT) environments.

Important notes:

  • Supports connection to external MQTT brokers to publish messages and subscribe to topics.
  • Integrations cannot be used as an MQTT broker (only as a client).
  • Compatible with MQTT protocol versions 3.1.1 and 3.1.

URI Syntax: paho:topic

Main Fields

Path parameters

Name
Description
Default
Type
topic (common)(required) Topic name.—String

Query parameters

Name
Description
Default
Type
brokerUrl (common)The MQTT broker URL.tcp://localhost:1883String

Example

The following flow publishes a message to a topic on an external broker without authentication and without using TLS through Integrations. The published message will be the payload sent to a REST endpoint.

The flow starts with a POST request to the /mqtt-01 endpoint with content in the body.

Then, it publishes to the MQTT broker:

  • Topic: sensedia-01
  • Broker: test.mosquitto.org on port 1883 (TCP protocol without encryption)
  • No authentication (public test broker)
  • The body content is published as a message to the topic.

cURL

Result

Paho MQTT5

The Paho MQTT5 component enables integration of applications with MQTT protocol (version 5), offering advanced messaging features such as persistent sessions and flow control.

URI Syntax: paho-mqtt5:topic

Main fields

Path parameters

Name
Description
Default
Type
topic (common)(required) Topic name.—String

Query parameters

Name
Description
Default
Type
brokerUrl (common)The MQTT broker URL.tcp://localhost:1883String

Example

  • The flow is identical to the flow described for the Paho component, with the difference that this one uses version 5 of the MQTT protocol.

cURL

Result

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more