Blog

MQTT and IoT guides

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

PubSubClient Buffer Size: Fixing Large Message Failures

Large MQTT messages failing silently on your ESP32 or ESP8266? Learn how the PubSubClient buffer works, how to size it with setBufferSize, and how to stream big JSON payloads without wasting RAM.

7 min read

Node-RED Worldmap: Tracking GPS Devices over MQTT

Turn MQTT GPS messages into moving markers with node-red-contrib-web-worldmap. Includes a vehicle simulator, the mapping function, staleness handling, tracks and tips for embedding the map in Dashboard 2.0.

7 min read

MQTT Packet Structure: Fixed Header, Variable Header and Payload

A byte-level walkthrough of MQTT packets: how the fixed header encodes type and flags, how remaining length works, and what the variable header and payload contain, using a CONNECT and PUBLISH you can capture with Wireshark.

7 min read

Node-RED Switch Node and Change Node for MQTT Routing

Use the Node-RED switch node to split MQTT traffic by topic and value, then shape each branch with the change node before republishing. Includes an importable flow and a test plan on a free broker.

9 min read

MQTT JWT Authentication: Tokens in the Password Field

A practical explanation of carrying JSON Web Tokens in MQTT CONNECT, how brokers validate them, how to handle expiry and refresh on devices, and when static per-device credentials are the simpler choice.

7 min read

Is MQTT Secure? Threats, Myths and Real Protections

An honest look at MQTT security: what the protocol does and does not protect, the threats that actually hit deployments, common myths, and the layers that make an MQTT system secure in practice.

7 min read

IIoT Architecture Layers: Device, Edge, Broker and Application

A clear IIoT architecture separates devices, edge gateways, the messaging broker and applications so each layer can change without breaking the others. This reference explains each layer's role, the design rules that keep it scalable and a runnable end-to-end example.

8 min read

HVAC Monitoring with IoT Sensors and MQTT Alerts

Which HVAC signals are worth measuring, how to publish them over MQTT, and how to turn delta-T, filter pressure and runtime into early fault alerts with a cloud broker.

7 min read

Unity MQTT Client: Drive 3D Scenes with Live Sensor Data

Add an MQTT client to Unity with MQTTnet, subscribe to sensor topics on broker.connectmq.com and safely animate GameObjects from live data on the main thread, the foundation of a digital twin.

7 min read

Sparkplug Primary Host Application and STATE Messages

The primary host application is the Sparkplug consumer edge nodes depend on. This guide explains STATE messages in Sparkplug 3.0, how edge nodes react when the host goes offline, and how to test the flow with Python and mosquitto.

7 min read

MTConnect to MQTT: Streaming CNC Machine Data to Dashboards

MTConnect agents expose CNC data over HTTP and XML. Build a bridge that follows the agent's sequence numbers, picks the data items that matter and publishes machine state over MQTT for dashboards and analytics.

7 min read

Industrial IoT with MQTT: The Complete IIoT Guide

Why MQTT became the backbone of Industrial IoT, how edge gateways, Sparkplug B and ISA-95 namespaces fit together, and how to build a working machine-to-cloud data flow with runnable code.

11 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.