BFGNeilBFGNeil's Blog
Toggle navigation menu
Back to all articles
How to Add Meshtastic Nodes to Trackpac Using an MQTT Gateway

How to Add Meshtastic Nodes to Trackpac Using an MQTT Gateway

Trackpac's new beta feature pulls Meshtastic node data straight into its geofencing and alerting platform over MQTT, so a plain LoRa mesh can double as real multi-site monitoring without a SIM card in sight.

Picture six warehouses spread across three counties, each with a gate sensor, a freezer door, and a generator that occasionally decides to switch itself off at 3am. Putting a cellular tracker on every one of those points means six SIM cards, six monthly bills, and a support ticket every time a carrier loses signal inside a steel building.

A lot of facilities teams already know Meshtastic solves the "no signal inside a warehouse" problem cheaply. What most of them do not know yet is that you can now pull that same mesh straight into Trackpac, geofences, alerts, and all, over a plain MQTT gateway.

That is the part worth getting excited about. Not because Meshtastic suddenly becomes a cellular tracker, but because it closes a real gap: cheap local sensing, fed into a proper multi-site dashboard, without paying for connectivity you do not actually need.

So what does this feature actually do?

Trackpac now has a beta feature that pulls Meshtastic node data in over MQTT. You run one ESP32-based gateway node per site with an internet connection, point it at Trackpac's broker, and every node that opts in shows up in Trackpac as a tracked device. From there you get the same geofences, alerts, and dashboards you would set up for any other asset, applied to hardware that cost you not much more than the price of a cheap dev board and needs no ongoing airtime bill.

It is a beta feature right now, limited to org owners, admins, and anyone with edit permissions on the account, but it is functional today and it is exactly the sort of thing a facilities or multi-site operations team should be piloting.

What you need before you touch any settings

The gateway has to be ESP32-based. That rules out the nRF52 boards, RAK4631, T-Echo, and T1000-E, as gateways, though all three are still fine as ordinary mesh nodes feeding data to an ESP32 gateway elsewhere on the mesh. The gateway needs to speak JSON over MQTT, and that is currently an ESP32-side capability.

You also need internet at the gateway itself, WiFi at the site is the usual route. That is the one dependency that works against Meshtastic's usual "works anywhere" pitch. You are trading a bit of off-grid purity for a live feed into your facilities dashboard, and for most sites that is a fair trade.

If you would rather buy a gateway than press an existing node into service, RAKwireless's WisMesh Station is worth a look. It is a Raspberry Pi 4 running meshtasticd in a sealed enclosure, sold through Hexaspot from around £154, and it handles the same MQTT module settings as an ESP32 board with a lot more headroom to spare.

Setting up the credential in Trackpac

Each gateway needs its own MQTT credential. Create one from the Organisations menu in Trackpac and give it a label you will recognise later, the site name is usually enough. Trackpac generates a host, port, username, and password for you, pointed at mqtt.trackpac.io on port 8883 with TLS.

Write that password down the moment you see it. Trackpac shows it exactly once. Lose it and you rotate the credential for a new one, though the gateway keeps working on the old password until it next reconnects, so nobody gets locked out mid-shift.

Configuring the gateway node

On the gateway node itself, open the MQTT module and enter the server, port, username, and password from the credential you just created. Turn TLS on and JSON output on. Then turn encryption off.

That last one is worth sitting with. Meshtastic's JSON output mode and its normal channel encryption do not run together, so getting your node data into Trackpac as readable JSON means that data leaves the gateway without being wrapped in Meshtastic's own encryption first. The MQTT link itself is still TLS-protected on its way to Trackpac's broker, so nothing is sitting in the clear on the open internet, but it is a different security model to a standard encrypted Meshtastic channel. If the nodes feeding Trackpac share a channel with anything sensitive, give them a channel of their own before you flip this switch.

Last step on the device side: enable channel uplink on whichever channel carries your sensor nodes, and enable "OK to MQTT" on every individual node you want Trackpac to see, not just the gateway itself. Miss that second part and the gateway connects fine while nothing shows up on your account.

Adding the devices in Trackpac

Back in Trackpac, add each node manually, choose "Meshtastic Node" as the device type, and enter its node ID, the exclamation mark followed by eight hex characters that every Meshtastic node already shows on its settings screen. No new hardware IDs to generate and no pairing dance. Once it is added, the node behaves like any other tracked device on the platform.

Why this is genuinely useful for facilities and multi-site teams

This is where it stops being a neat Meshtastic trick and starts being an actual tool. A facilities manager running several sites does not need millisecond-accurate GPS on a loading dock gate. They need to know it opened, roughly where, and who to tell about it.

Meshtastic nodes are cheap enough to scatter liberally: one per gate, one per plant room, one clipped to a generator, one on a pallet truck. A single gateway per site covers all of them over LoRa, so you are paying for one internet connection per site rather than a SIM in every sensor. Feed that into Trackpac's geofences and you get an alert the moment a gate node drifts outside its expected zone, or a contact gets notified when a device stops reporting entirely, which on a mesh usually means a flat battery, a door propped open blocking the signal, or someone walking off with something they should not have.

Put several sites under one Trackpac account and you get a single dashboard across all of them, instead of six separate spreadsheets and a WhatsApp group somebody forgets to check.

Where this will disappoint you

It is not real-time. MQTT adds latency on top of the mesh hop already in play, so for anything genuinely time-critical, a fire door, a cold chain breach where seconds matter, this is not the right tool. It behaves more like "checked every few minutes" than "live tracking."

It is also a beta feature, which means the device type, the fields, and almost certainly the limits around how many nodes one gateway can usefully relay are all subject to change. Treat it as something to pilot on one site before rolling it out across a whole portfolio.

And the encryption trade-off above is real, not a technicality. If privacy on that channel matters to you, keep the nodes feeding Trackpac on their own channel and nothing else.

The bigger picture

This follows the same pattern as every other Meshtastic MQTT setup: a local mesh doing the cheap, resilient, mostly offline part, bridged out through one gateway to whatever actually needs the data. The setup itself has not changed. Trackpac is simply a destination worth pointing it at if asset visibility and alerting are what you are actually after.

For a facilities team, that is the whole pitch. You are not buying a tracking platform and then hunting for cheap hardware to put on it. You already had the cheap hardware figured out. You are just giving it somewhere sensible to report to.

Six warehouses, one dashboard, no SIM cards in sight. That is not a bad outcome for the price of a few LoRa boards and an afternoon spent in the module settings.