1. Home
  2. ...
  3. Triggers
  4. t Paho and Paho MQTT 5

t Paho and Paho MQTT 5

Available triggers

Paho

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

IMPORTANT
  • 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 flow connects to the public MQTT broker (test.mosquitto.org) on port 1883 using the TCP protocol.

It subscribes to the topic named sensedia-01 and waits for messages published to this topic.

When a message is received, the content (${body}) is logged with the message "Got message" followed by the message body.

Result

Paho MQTT5

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

IMPORTANT
  • 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 version 5.

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 in the example is identical to the flow described for the Paho component, with the difference that this one uses version 5 of the MQTT protocol.

The flow connects to the public MQTT broker (test.mosquitto.org) on port 1883 using the TCP protocol.

It subscribes to the topic named sensedia-01 and waits for messages published to this topic.

When a message is received, the content (${body}) is logged with the message "Got message" followed by the message body.

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