Blog

MQTT and IoT guides

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

Real-Time OEE Monitoring with MQTT: Build a Live OEE Service

A hands-on tutorial for real-time OEE monitoring: machines publish states and counts over MQTT, a Python service calculates availability, performance and quality every minute and publishes live OEE for any dashboard.

7 min read

MQTT Broker Pricing Models Explained: How to Estimate Your Bill

Managed MQTT services bill on very different units: connections, session minutes, messages, traffic or dedicated capacity. Learn how each model works, which workloads it favours and how to estimate your usage before comparing quotes.

8 min read

Machine Downtime Tracking with IoT Sensors and MQTT

Track downtime on any machine, old or new: an ESP32 with a clamp-on current sensor publishes run and stop states over MQTT, and a Python logger records every stop with its duration and reason.

7 min read

React MQTT Tutorial: A Hooks-Based Real-Time Dashboard

Create a reusable useMqtt hook around MQTT.js, connect React to a broker over secure WebSocket, and render live sensor values without re-render storms, StrictMode surprises or leaked connections.

7 min read

MQTT to SQLite with Python: Store and Query Sensor Messages

Build a Python subscriber that stores every MQTT message in SQLite with a timestamp, topic, QoS and retain flag, using batched writes and WAL mode, then query history, hourly averages and latest values with plain SQL.

7 min read

Real-Time MQTT Data Analysis with Python and pandas

Stream MQTT messages from a broker into pandas DataFrames without blocking the network loop, then compute rolling means, per-minute resamples, stale-device checks and simple anomaly flags.

7 min read

Log MQTT Messages to CSV with Python for Quick Analysis

Build a Python logger that subscribes to MQTT topics, writes every message to CSV, rotates files by day and size, and produces data you can open straight in Excel, pandas or a notebook.

8 min read

Is MQTT TCP or UDP? The MQTT Transport Layer Explained

MQTT runs over TCP, either directly, inside TLS, or inside WebSocket. Learn why the protocol depends on an ordered, reliable stream, where MQTT-SN and QUIC fit, and which ports to open for a ConnectMQ broker.

7 min read

MQTT-SN Explained: MQTT for Sensor Networks

MQTT-SN adapts MQTT for battery-powered sensors on UDP, Zigbee and other non-TCP networks. Learn topic IDs, sleeping clients and gateways, and how to forward MQTT-SN traffic into a standard MQTT broker.

8 min read

MQTT Message Expiry Interval: Stopping Stale Commands

MQTT 5 lets a publisher say how long a message stays valid. Learn how the message expiry interval works with persistent sessions and retained messages, and how to stop late devices from executing stale commands.

7 min read

ESP32 GPS Tracker MQTT: NEO-6M Positions on a Live Web Map

Read a NEO-6M GPS module with the ESP32, publish position, speed and fix quality over MQTT only when the device moves, and display the track live on a Leaflet map over secure WebSocket.

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.