Blog

MQTT and IoT guides

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

How to Store MQTT Data in InfluxDB with Python

Build a Python bridge with paho-mqtt and influxdb-client that subscribes to a broker, turns topic levels into InfluxDB tags, writes numeric JSON values as fields in batches and handles bad payloads and type conflicts.

7 min read

Node-RED Chart History: Keep MQTT Chart Data Across Restarts

Dashboard charts forget everything when Node-RED restarts. This guide shows two reliable ways to keep Node-RED chart history for MQTT data: file-backed context storage and a small SQLite table, both replayed into Dashboard 2.0 on startup.

7 min read

MQTT 3.1.1 vs 5.0: What Changed and Should You Upgrade?

A practical MQTT 3.1.1 vs 5.0 comparison covering protocol behavior changes, client library support and a step-by-step migration checklist for upgrading a mixed fleet gradually.

8 min read

Run a Python MQTT Script on Boot with systemd on Raspberry Pi

Turn a Python MQTT client into a proper systemd service on a Raspberry Pi: start after the network and clock are ready, restart automatically, keep credentials in an environment file and shut down cleanly.

7 min read

MQTT Broker SLA: What Uptime Guarantees Really Mean

Uptime percentages look similar but mean very different amounts of downtime. Learn how to read an MQTT broker SLA, what it covers and excludes, and how to design devices for the downtime it allows.

7 min read

Using a Managed MQTT Broker for Mobile Apps

Mobile apps can talk to IoT devices in real time through an MQTT broker. Learn the connection lifecycle, when to use push notifications instead, and how to protect battery and credentials.

7 min read

Dedicated MQTT Broker: When You Outgrow Serverless

A dedicated MQTT broker gives your fleet an isolated cluster with predictable performance. Learn the signs you have outgrown serverless, how to size capacity, and how to migrate safely.

7 min read

Node-RED Sparkplug B: Publishing and Consuming Edge Data

Turn Node-RED into a Sparkplug B edge node with node-red-contrib-mqtt-sparkplug-plus: define metrics, publish NBIRTH, DBIRTH and DDATA, handle DCMD commands, then decode the Protobuf payloads into plain MQTT topics.

8 min read

Run Node-RED in Docker for MQTT Projects

A practical Node-RED Docker guide: run the official image, keep flows on a persistent volume, use Docker Compose, install extra nodes, pass secrets through environment variables and connect to an MQTT broker over TLS.

7 min read

MQTT Last Will and Testament (LWT): Detecting Offline Devices

Last Will and Testament lets the broker announce that a client vanished without saying goodbye. Learn the will fields, the exact trigger rules and how to test LWT by killing a client on a live broker.

7 min read

MQTT Client Libraries: Choosing the Right One for Every Language

A practical comparison of maintained MQTT client libraries for Python, JavaScript, Go, Java, C#, Rust, C, embedded and mobile, with a minimal connect-and-publish snippet for each one, tested against broker.connectmq.com.

11 min read

ISA-95 Equipment Hierarchy: Enterprise, Site, Area, Line, Cell

The ISA-95 equipment hierarchy gives every machine an address: enterprise, site, area, work center and work unit. This guide explains each level with plant examples and shows how to map live devices onto it.

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.