MQTT Subscriber Trigger
The MQTT Subscriber Trigger subscribes to a topic and presents the messages received as output. When the messages arrive, a new flow is triggered.
Settings
The Settings tab has the following fields:
Field | Description |
---|---|
Connection | Name of the connection |
Topic | The topic to which the trigger subscribes.
Some topic string rules are: |
Maximum QoS |
If a message is sent with a higher QoS, the effective QoS of the message is reduced to the maximum QoS value. To avoid QoS getting reduced on the subscriber side, you must set maximum QoS to 2. |
Value Deserializer | Establish the way the message body is treated |
Value Deserializer:String | The activity input presents the message bytes as a simple string |
Value Deserializer:JSON | The activity input presents the message bytes as a JSON object decoded with the provided schema |
Value Deserializer:Base64 | The activity input presents the message bytes as a base64 encoded string |
Output
The Output tab displays the schema in a tree format. The output is read-only.
The Output tab has the following fields:
Field | Description |
---|---|
topic | The exact topic on which the message arrived |
retained | It indicates whether this message was a retained message |
qos | It indicates the quality of service of the message. |
string value | The value of the message presented as a string. An error is displayed if the message is not a string. |
Copyright © Cloud Software Group, Inc. All rights reserved.