Skip to content
Fuuz Wiki Import edited this page Jun 5, 2026 · 3 revisions

MQTT

MQTT (Message Queuing Telemetry Transport) is a lightweight, efficient publish-subscribe messaging protocol designed for constrained devices and low-bandwidth, high-latency, or unreliable networks. It is especially popular in IoT and machine-to-machine (M2M) communication. Key concepts include:

  1. Publish-Subscribe Model: Publishers send messages to topics; subscribers express interest in topics. When a message is published, the broker delivers it to all interested subscribers.
  2. Quality of Service (QoS): Three levels control delivery reliability:
    • QoS 0 (At most once): Delivered at most once; no acknowledgment, some messages may be lost.
    • QoS 1 (At least once): Guaranteed delivery at least once; duplicates may occur.
    • QoS 2 (Exactly once): Guaranteed delivery exactly once, with no duplicates.
  3. Lightweight: Minimal overhead in message size and bandwidth, suitable for devices with limited processing power and memory.
  4. Retained Messages: When sent with the "retain" flag, the broker stores the last message on that topic and delivers it immediately to new subscribers.
  5. Last Will and Testament (LWT): Clients can specify a "last will" message that the broker sends if the client disconnects unexpectedly.
  6. Session Persistence: Brokers can remember client subscriptions so clients receive messages missed while disconnected.
  7. Security: Supports TLS for encrypted connections and username/password authentication.
  8. Wildcards: Topic subscriptions support wildcards (+, #) to receive messages from multiple topics with a common pattern.

Configuration

  • Broker Url: The URL for the MQTT broker to connect to.
  • Username: The user name to use if the broker does not allow anonymous connections.
  • Password: The password to use if the broker does not allow anonymous connections.
  • Last Will and Testament: A message sent to subscribers if this client disconnects ungracefully.
    • Topic: The topic to publish data to. Can include wildcards (+, #).
    • Payload: The data to publish to a topic.
    • Retain: Whether the message should be retained by the broker and sent to clients as soon as they subscribe.
    • Quality of Service: The QoS to use when sending the message.

Functions

Publish

Publishes data to an MQTT topic. Takes an array of objects with the fields:

  • Topic: The topic to publish data to.
  • Payload: A string representing the data to publish.
  • Encoding: The way to encode the data from the payload.

Testing

Mosquitto Broker (mosquitto.org) — download the Eclipse Mosquitto broker to connect MQTT clients for testing. Once installed, it should appear running in the Windows Service Manager. You can then use an MQTT client to subscribe to topics, and another client to change topic values.

MQTT Explorer (mqtt-explorer.com) — connect to Mosquitto or any other broker to publish values and make changes to topics that can be picked up by other clients.

MQTT Explorer connected to a broker

See Also


Source: support.fuuz.com

🏠 Home

Getting Started (14)
Training Guides (52)

Applications

Access & Users

Data Models & Schema

Screens

Weather Lookup Series — guided 3-part build

Data Flows & Integrations

Data, Reporting & Monitoring

Enterprise & Organizations

Platform Concepts & Architecture (10)
Screens & Application Design (17)
Data Models & Schema (8)
Data Flows & Scripting (51)

Designing Flows

Data Flow Nodes

JSONata Reference

Scripting

Integrations & Connectors (30)

General & iPaaS

Plex

EDI

IIoT & Edge Gateway (18)

Physical Device Connectors

Edge Data Connectors

Reporting, Documents & Dashboards (8)
Administration & Access Control (27)
Data Management (8)
Accelerators, Templates & Packages (8)
Design Standards (1)
How-To Guides (8)
FAQ & Troubleshooting (1)
Release Notes (117)

2026

2025

2024

2023

2022

2021

2020

Policies & Company (6)

Clone this wiki locally