Blog

MQTT and IoT guides

Practical guides on MQTT, managed brokers and connected products from the ConnectMQ team.

Sparkplug B Payload Format: Metrics, Datatypes and Protobuf

Sparkplug B payloads are compact Protobuf messages, which is why they look like gibberish in a normal MQTT client. This guide walks through every field, shows a decoded example and explains how to inspect payloads in practice.

8 min read

Public MQTT Broker Limitations You Should Know Before You Build

Public test brokers are fantastic for learning and demos, but they come with real constraints. Understand privacy, reliability, shared topics and rate limits, how to design within them, and the signs it is time for a private broker.

7 min read

MQTT.js Node.js Tutorial: Publish, Subscribe, QoS and TLS

Build a Node.js publisher and subscriber with MQTT.js v5, use the async API, QoS and Last Will, encrypt with TLS on port 8883, and tune reconnect options so your service survives network drops.

7 min read

Telegraf MQTT Consumer: Ingest MQTT Data into InfluxDB

A practical guide to Telegraf's mqtt_consumer input: subscribe to broker topics, parse JSON with timestamps and tags, write to InfluxDB 2, secure the connection with TLS and troubleshoot missing data.

7 min read

Sparkplug Templates and UDTs Explained

Sparkplug templates bring PLC-style user-defined types to MQTT. This guide explains template definitions and instances, parameters, nesting and versioning, with Python code that builds a pump template and tips for keeping models consistent across edge nodes.

7 min read

MQTT Broker Total Cost of Ownership: A Practical TCO Model

The licence or subscription is rarely the biggest cost of an MQTT broker. This guide builds a TCO model that includes infrastructure, engineering time, on-call, incidents and risk, so you can compare self-hosting and managed options on equal terms.

7 min read

ESP32 SCT-013 Current Sensor Energy Monitor over MQTT

Clamp an SCT-013 current transformer on a mains cable, measure RMS current with the ESP32 ADC, estimate power and energy, and publish the results to broker.connectmq.com for energy dashboards.

7 min read

PLC to Cloud Connectivity: Architectures and Trade-Offs

A practical comparison of the three main PLC to cloud architectures, native PLC MQTT, edge gateways and SCADA-based forwarding, with security, reliability and data-modeling considerations for each.

9 min read

Node-RED Delay Node: Rate Limiting MQTT Messages

High-frequency sensors can flood a broker, a database or an operator's phone. Learn how the Node-RED delay node delays and rate-limits messages, when to queue or drop, how per-topic mode works and how to stay within broker limits.

7 min read

Home Assistant MQTT Integration: Complete Setup Guide

Configure the Home Assistant MQTT integration, define sensors and switches in YAML, test the whole flow against broker.connectmq.com and then switch to a private, authenticated broker.

7 min read

How to Secure Node-RED: A Practical Checklist

An exposed Node-RED editor is remote code execution waiting to happen. This checklist shows how to secure Node-RED with admin authentication, HTTPS, an explicit credential secret, protected HTTP endpoints, network controls and TLS to your MQTT broker.

7 min read

Storing MQTT Credentials Securely on Embedded Devices

A practical comparison of ways to protect MQTT usernames and passwords on ESP32 and Linux devices, from encrypted NVS and flash encryption to secure elements and TPM-backed systemd credentials.

7 min read

MQTT Message Ordering Guarantees Explained

MQTT keeps messages in order, but only within narrow rules. Learn exactly what the spec guarantees, the real-world situations that reorder messages, and how sequence numbers make your consumers robust.

7 min read

Your private MQTT broker is a few clicks away

Create an account, get your broker credentials and connect your first device — no servers to install, patch or scale.