Maker tech hub - AI · 3D print · Pi · ESP32 · plus the classic tech archive.

Free ESP32 kit · AI tools directory · Books · Archive

Guide · Intermediate · ESP32

Meshtastic vs MQTT for a Small Home Lab

When mesh radios help — and when plain Wi‑Fi MQTT is simpler.

Written by

Avery J. Parker

IT veteran, maker educator, and author of Network Ninja, 3D Printing Mastery, and AI Workflow Mastery. Business IT: Diversified Tech Solutions.

In this guide

  • Goal & materials
  • Steps / firmware
  • Troubleshooting
  • AI assist notes
  • Related gear & books

Meshtastic and MQTT both move small messages between devices, so they get compared a lot. They solve different problems. MQTT is a messaging protocol that rides on a network you already have. Meshtastic is a radio network you build out of LoRa devices. For most home labs, the right answer is MQTT over Wi-Fi, with Meshtastic or plain LoRa only for places Wi-Fi does not reach.

What each one is

MQTT

MQTT is a publish/subscribe protocol. Devices connect to a broker, such as Mosquitto, and publish messages to topics like lab/garage/temperature. Anything subscribed to that topic receives them. It needs an IP network (Wi-Fi or Ethernet) and is supported by Home Assistant, Node-RED, and most home automation tools.

Useful features:

  • QoS levels 0, 1, and 2 for delivery guarantees.
  • Retained messages so a new subscriber immediately gets the last value.
  • Last Will and Testament so the broker announces when a device drops off.
  • Plenty of bandwidth for frequent readings, JSON payloads, and commands.

Meshtastic

Meshtastic is open source firmware for LoRa radio boards based on ESP32 and nRF52 chips. Devices form a mesh: each node can rebroadcast messages so they hop beyond the range of a single radio. It runs in license-free ISM bands, with the region setting determining the frequency (for example 915 MHz in the US and 868 MHz in much of Europe).

  • Long range, low power, with no Wi-Fi or internet required.
  • Very low bandwidth. Messages are small, and airtime is shared by every node on the channel.
  • Built-in modules for text messages, position, and environmental telemetry.
  • An MQTT gateway feature, so a node with network access can bridge mesh traffic to a broker.

Side by side

MQTT over Wi-FiMeshtastic
Needs existing networkYesNo
RangeYour Wi-Fi coverageVaries widely with terrain, antennas, and height; can reach far beyond Wi-Fi
BandwidthHighVery low
Update rateSeconds or fasterMinutes is more appropriate
PowerWi-Fi is relatively power hungryLow, battery and solar friendly
IntegrationNative in most home automation toolsVia its MQTT bridge, apps, or APIs
Setup effortLow if you have a brokerModerate: radios, antennas, region and channel settings

When plain MQTT is simpler

  • Sensors inside the house or a workshop within Wi-Fi range.
  • Anything that needs commands and fast feedback, like relays, lights, or printer monitoring.
  • Frequent readings, such as power monitoring every few seconds.
  • Projects that already use ESP32 boards with Wi-Fi.

If a device is a little out of range, an extra access point or mesh Wi-Fi node is usually easier than adding a radio network.

When Meshtastic helps

  • Outbuildings, gardens, fields, or a detached shop where Wi-Fi does not reach and running cable is not practical.
  • Battery or solar sensors that report slowly, such as a water tank level every 15 minutes.
  • Off-grid or emergency messaging between people with handheld nodes.
  • Places with no internet, where the mesh itself is the network.

For a single remote sensor talking to one base station, plain LoRa point-to-point (two LoRa modules with your own simple protocol) can be simpler than a full mesh. Meshtastic shines when you want several nodes, relaying, and ready-made apps.

Combining them

A common pattern is Meshtastic at the edges and MQTT at the core. Remote nodes send telemetry over the mesh, and one node near your network forwards it to your MQTT broker. From there, Home Assistant or Node-RED treats it like any other data. Keep payloads small and intervals long so you do not saturate the mesh.

Security notes

  • MQTT: require usernames and passwords, use TLS where possible, and never expose a broker port directly to the internet. Use a VPN for remote access.
  • Meshtastic: the default public channel is shared with anyone using the default settings. Create a private channel with its own key for your own traffic. Licensed amateur radio mode disables encryption, as amateur rules generally require, so do not use it for private data.

Common mistakes

  • Using Meshtastic for high-rate data, then wondering why messages are delayed or dropped.
  • Leaving the region setting at default or wrong, which can mean illegal transmissions or no communication.
  • Expecting quoted range figures indoors. Walls, trees, and antenna height matter enormously.
  • Running MQTT without authentication on a shared network.

Summary

If Wi-Fi reaches it, use MQTT: it is faster, simpler, and already integrated with everything. Reach for Meshtastic when distance, power, or lack of network makes Wi-Fi impractical, and bridge it into MQTT so all your data ends up in one place.

Related