Blog

ESP32 and Arduino

ESP32 and Arduino tutorials: sensors, MQTT, TLS, deep sleep and OTA, with examples connected to the public broker broker.connectmq.com.

ESP-IDF MQTT Example: Build an esp-mqtt Client from Scratch

Build an ESP-IDF project from an empty folder with the esp-mqtt component: Wi-Fi station setup, the MQTT event handler, publish and subscribe, MQTT 5 properties and TLS with the certificate bundle.

8 min read

Using esp-mqtt MQTT 5 Features on ESP32 with ESP-IDF

A hands-on ESP-IDF project that enables MQTT 5.0 in esp-mqtt and uses user properties, message expiry, topic aliases, session expiry and response topics against a real MQTT 5 broker.

7 min read

ESP32 SCT-013 Current Sensor Energy Monitor over MQTT

Clamp an SCT-013 current transformer on a mains cable, measure RMS current with the ESP32 ADC, estimate power and energy, and publish the results to broker.connectmq.com for energy dashboards.

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

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

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.