Blog

MQTT and IoT guides

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

Energy Load Forecasting with IoT Meter Data and MQTT

A practical use case for energy load forecasting: collecting meter data over MQTT, turning energy counters into demand, adding weather and calendar features, and publishing day-ahead forecasts for buildings and plants.

7 min read

MQTT Broker RFP Checklist: How to Evaluate Vendors

An RFP-ready MQTT broker checklist with the questions that matter, why each one matters, what a good answer looks like and, as a worked example, how ConnectMQ answers them, including the things it does not do.

8 min read

Sparkplug 3.0 vs 2.2: What Changed in the Specification

Sparkplug 3.0 kept the payload and topic namespace but tightened the rules around host state, bdSeq and sessions. This comparison explains each change and gives a practical upgrade checklist for edge nodes and host applications.

7 min read

Raspberry Pi Modbus MQTT Gateway with pymodbus (RTU and TCP)

Poll Modbus RTU devices over RS-485 and Modbus TCP devices over Ethernet from a Raspberry Pi with pymodbus, decode scaled and 32-bit float registers correctly, and publish clean JSON to an MQTT broker.

7 min read

Node-RED Function Node: JavaScript for MQTT Messages

A practical guide to the Node-RED function node for MQTT work: reshaping payloads, filtering noise, routing to several outputs, keeping state and handling errors, with a flow you can import and run against a live broker.

8 min read

MQTT CONNACK Return Codes 0-5 Explained (MQTT 3.1.1)

MQTT 3.1.1 brokers answer every CONNECT with a CONNACK return code from 0 to 5. Learn what each one means, how it looks in Mosquitto, Paho and MQTT.js, and the fastest fix for each refusal.

7 min read

MQTT Access Control Lists (ACLs): Concepts and Design

What MQTT access control lists are, how brokers such as Mosquitto express topic-level read and write rules, how denied operations behave and how to design topic namespaces so authorization stays simple.

7 min read

TIG Stack with Docker Compose for MQTT Data

A complete docker-compose setup for Telegraf, InfluxDB 2 and Grafana that subscribes to an MQTT broker, stores sensor data and opens with a provisioned data source and dashboard, plus the pitfalls that break first runs.

7 min read

OPC UA PubSub over MQTT Explained: Messages, Encodings and Topics

OPC UA Part 14 lets OPC UA publishers send data through any standard MQTT broker. Learn the PubSub building blocks, JSON vs UADP encodings, topic and metadata conventions, and how to publish and decode messages yourself.

8 min read

MQTT to TimescaleDB: Storing IoT Time Series in PostgreSQL

Build an MQTT to TimescaleDB pipeline: a Python subscriber batches device messages into a PostgreSQL hypertable with COPY, then continuous aggregates, compression and retention keep queries fast and storage small.

7 min read

MQTT Threshold Alerts: Get Notified When Values Go Out of Range

Learn how to raise alerts when MQTT sensor values leave a safe range: rules in the ConnectMQ portal, a Node-RED flow for notifications, and a Python alerter with hysteresis and debounce to avoid alert storms.

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.