Skip to main content

MQTT Source Node

Quick Reference

Use Credentials Optional username/password credential for authenticated brokers. Leave blank for anonymous brokers.

Broker URL The MQTT broker URL. Use ssl:// or wss:// when TLS is enabled. ex: tcp://broker:1883 or ssl://broker:8883

Topic Filter The MQTT topic filter to subscribe to. Supports + and # wildcards. ex: sensors/#

Encoding Type The format of the incoming messages.

Client ID The MQTT client identifier used for the connection.

QoS Quality of Service level: 0 (at most once), 1 (at least once), or 2 (exactly once). Default: 1.

Enable TLS Use ssl:// or wss:// for the broker connection. Default: off.

Overview

The MQTT Source node lets your workflow subscribe to an MQTT broker and stream incoming messages into the pipeline. It acts as the starting point of your workflow, buffering messages received from the subscribed topic filter and passing each one downstream for processing.

It uses MQTT v5 and supports authenticated and anonymous brokers, configurable Quality of Service, TLS, and automatic reconnect.

Configuration

FieldDescriptionRequiredDefault
Broker URLThe MQTT broker URL. Use ssl:// or wss:// when TLS is enabled (e.g. tcp://broker:1883, ssl://broker:8883).Yes
Topic FilterThe topic filter to subscribe to. Supports + (single level) and # (multi level) wildcards (e.g. sensors/#).Yes
Client IDThe MQTT client identifier used for the connection.Yes
Encoding TypeDefines how each message should be interpreted. Options: CSV, JSON Object, JSON Array, JSON Lines, String Line, Text, XML. More info here.Yes
Use CredentialsSelect or create a username/password credential for authenticated brokers. Leave blank for anonymous brokers.No
QoSQuality of Service level: 0 (at most once), 1 (at least once), or 2 (exactly once).No1
Enable TLSUse ssl:// or wss:// for the broker connection.Nooff

Advanced settings

FieldDescriptionRequiredDefault
Clean StartSet the MQTT clean-start flag on connect.Noon
Automatic ReconnectReconnect automatically after a dropped connection.Noon
Session Expiry Interval (seconds)MQTT session expiry interval. Leave blank for none.No
Receive Timeout (ms)How long a fetch waits for the first message before returning.No1000
Max Batch SizeMaximum number of messages returned per fetch.No500
Receive Queue CapacityBounded inbound queue size between the MQTT callback and the framework loop.No10000