Blog

MQTT and IoT guides

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

ESPHome MQTT: Using MQTT Instead of the Native API

Switch an ESPHome device from the native API to MQTT so Node-RED, Python scripts, dashboards and Home Assistant can all read and control it through one broker.

7 min read

PHP MQTT Client Tutorial with php-mqtt/client

Learn to publish MQTT messages from a PHP web request and run a long-lived PHP subscriber worker with php-mqtt/client, including TLS, reconnects, graceful shutdown and Laravel-friendly patterns.

7 min read

Warehouse Digital Twin for Logistics Operations

How to build a warehouse digital twin that tracks inventory movement, AGVs and conveyor states in a live 3D model fed by MQTT topics, with topic design, code and pitfalls.

6 min read

Raspberry Pi Camera Motion MQTT Alerts with Picamera2

Build a motion detector with a Raspberry Pi camera and Picamera2, save a snapshot when something moves, and publish motion events with snapshot links over MQTT so dashboards, phones and automations can react.

7 min read

How to Retrofit Legacy Machines for IoT Without Touching the PLC

Old machines still make most of the parts in many plants. This guide shows how to retrofit legacy machines for IoT with current clamps, add-on sensors and a gateway, and publish machine state over MQTT without touching a line of PLC code.

7 min read

MQTT TLS 1.3: Handshakes, Cipher Suites and Performance

How TLS 1.3 changes MQTT connections: fewer round trips, a smaller set of strong cipher suites and different trade-offs for microcontrollers. Includes Python, Node.js, Mosquitto and OpenSSL examples.

7 min read

MQTT Audit Logging: What to Record and Why

A practical guide to MQTT audit logging: which events matter for security and compliance, what fields to capture, where logs come from in a managed setup, and how to build a simple pipeline.

7 min read

Designing ISA-95 Based MQTT Topics

How to encode the ISA-95 equipment hierarchy into MQTT topics: level order, leaf design, wildcard planning, payload choices and the common pitfalls, plus how Sparkplug B data can be republished into the same tree.

7 min read

MQTT Wildcards: How to Use + and # in Topic Filters

The single-level + and multi-level # wildcards let one MQTT subscription cover many topics. Learn the exact matching rules, the edge cases and how to test every filter on a live broker.

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.