Modbus RTU → MQTT · no code

Modbus-to-MQTT Gateway

Put your RS485 meters, drives, and PLCs on MQTT in minutes. The Gateway polls Modbus RTU registers and publishes every value to the broker of your choice — no PC, no middleware server, and no code to write.

  • Commissioned from a browser: list your registers and go
  • Keeps polling and logging when the broker is down
  • One price: hardware and app included, no licence fees

Ethernet, Wi-Fi, and cellular versions

The three versions of the Tibbo Modbus-to-MQTT Gateway standing in a row, orange and black Tibbo Project System boxes with green terminal blocks: Ethernet in front, Wi-Fi with a short antenna behind it, and 4G/LTE with a tall antenna at the backRS485 · Modbus RTUMQTT · TLS
TLSencrypted link to your broker
Openapp you can customize in AppBlocks
3uplinks: Ethernet, Wi‑Fi, 4G/LTE

Why integrators choose it

Everything a Modbus-to-MQTT bridge needs, in one small box you can mount in the panel.

No PC, no licence

One price buys the hardware and the application. There are no per-tag licences, no gateway PC to maintain, and no middleware server between the bus and the broker.

Live in minutes

Enter each register's slave ID, address, function code, and name in the web console. Readings appear in the live table within seconds and start flowing to your broker.

Never flies blind

Polling and publishing run independently. A broker or uplink outage never stalls the bus — readings keep being timestamped and stored in a 10,000-sample log on the device.

Yours to change

The app is built in AppBlocks, our no-code flowchart editor, and published on GitHub. Need JSON payloads or extra I/O? Edit the flowchart instead of starting a firmware project.

How it works

Four steps from a register on the bus to a message on your broker.

Diagram: Modbus RTU field devices on RS485 are polled by the Gateway, which publishes to an MQTT broker read by dashboards, mobile apps, SCADA, and cloud applications
  1. 1

    List your tags

    For each register, enter the slave ID, address, function code, a name, and an optional scale multiplier.

  2. 2

    The Gateway polls

    Each tag is read from its Modbus RTU slave once per poll interval, with its own response timeout.

  3. 3

    Scale, show, store

    Every reading is scaled, shown live in the web console, and written to the on-device history log.

  4. 4

    Publish to MQTT

    Each tag goes to your broker as <prefix>/<tag-name>, on its own publish schedule.

From register to topic

One row in the register map is all it takes. The Gateway reads the raw register, applies your multiplier, and publishes the result as a plain value on a topic built from your prefix and the tag name.

Subscribers just listen to plant1/line2/# — no decoding, no byte-swapping on the receiving side.

Need a JSON envelope or a different topic layout? That is a change in the AppBlocks project, not a new product.

Register map row

SlaveFCAddress×Name
331000.1boiler_temp
raw 724 × 0.1

MQTT message

topicplant1/line2/boiler_temp

payload72.4

Set up from any browser

A password-protected web console is built into the Gateway. There is nothing to install: browse to its IP address and configure everything from one place.

  • General, Network, Modbus, and MQTT settings on their own pages
  • Editable register map of up to 30 tags, stored in flash
  • Live register values and sample log, refreshed every second
  • 200-record event log for troubleshooting on site

Broker down? Polling isn't.

Cloud links drop and brokers restart. Because polling and publishing run independently, the Modbus side never waits for the network.

Timeline: Modbus polling continues and the on-device log keeps filling while MQTT publishing is interrupted by a broker or uplink outage
10,000-sample logTimestamped readings are kept in flash, so the history survives an outage and a power cycle.
SNTP time syncEvery sample carries a correct timestamp, in the time zone you configure.
Automatic reconnectPublishing resumes on its normal schedule as soon as the broker is reachable again.

Works with your broker

A standard MQTT client with username/password authentication and optional TLS.

  • Mosquitto
  • EMQX
  • HiveMQ
  • Cloud brokers over TLS
  • Any standard MQTT broker

And from there, to anything that subscribes: dashboards, SCADA and HMI, historians, mobile apps, and cloud rules engines.

Where it's used

It clips onto the DIN rail beside the devices it reads, in the main panel or in a box at the far end of the site.

The Gateway on a DIN rail in a control cabinet, next to a three-phase and three single-phase energy meters, all wired to one RS485 bus

In the panel: energy metering

Daisy-chain your kWh meters on one RS485 pair. The Gateway polls kWh, voltage, and current and publishes them straight to your energy dashboard over the plant LAN.

The cellular Gateway with its LTE antenna on a DIN rail in a small wall-mounted field enclosure, the door open, with mains and RS485 cables entering through glands

At remote sites: 4G/LTE

Pump stations, tanks, and solar sites with no network at all. The cellular version fits a small field enclosure with a 24V supply and reports over the mobile network.

  • Buildings & HVAC
  • Water & wastewater
  • Machine monitoring & OEE
  • Cold chain, food & pharma
  • Solar & battery storage
  • Generators
  • Data center power
  • Greenhouses & irrigation
  • EV chargers
  • Compressed air
  • Marine systems
  • OEM machine builders

Create TPS apps with AppBlocks

No-code software development is the future because no one has the time to write and debug applications line-by-line.

Enters AppBlocks, our flowchart-based, no-code, in-browser application development system for Tibbo Project System devices.

In AppBlocks, supported features are represented by functional blocks, which you drag onto and interconnect inside a project canvas. This draw-an-application approach allows you to quickly create complete automation and IoT applications for security, access control, building automation, data collection, precision agriculture, and other fields.

Head to appblocks.io and create your first TPS application today!

The whole project is on GitHub

Inspect the AppBlocks project file and adapt it to your own needs: modbus-mqtt-gateway-appblocks

Features in detail

Register map

  • Up to 30 tags, stored in flash — no rebuild needed to add a meter
  • Slave ID 1–255, register address 0–65535
  • Read coils (FC1), discrete inputs (FC2), holding registers (FC3), input registers (FC4)
  • Per-tag name (up to 30 characters) and scale multiplier

Modbus RTU

  • 1200–921,600bps (default 9600)
  • None/even/odd parity, 7 or 8 bits/character
  • Poll interval 0–600s (default 5s)
  • 1000ms response timeout, up to 10 outstanding requests

MQTT

  • Works with any standard broker: Mosquitto, EMQX, HiveMQ, AWS IoT, Azure IoT, and others
  • Optional TLS with a certificate file stored in flash
  • Client ID, username/password, 30s keep-alive
  • Topic prefix/tag_name, publish interval from 5s (default 30s), QoS 0

Data storage

  • 10,000-record timestamped sample log
  • 200-record event log
  • Live register value table
  • SNTP time sync with configurable time zone

Web console

  • Built in, password-protected, on port 80
  • General, Network, Modbus, and MQTT pages
  • Live values and sample log, refreshed every second

Network & platform

  • Ethernet with DHCP or static IP; DNS for named brokers
  • Wi-Fi and 4G/LTE versions available
  • 8–60VDC wide-range power input (12/24/48V systems)
  • Runs on the Tibbo Project System; extend it in AppBlocks

Specifications

Hardware platformSize 2 Tibbo Project System: TPP2(G2)-family board in a TPB2 enclosure
EnclosureTPB2, 105 × 105 × 39mm; optional DIN-rail mounting kit and vibration protection kit (IEC 60068-2-27)
Power input8–60VDC (12/24/48V nominal) through a power jack or a two-pin terminal block; tolerates dips to 6V and spikes to 100V; reverse-polarity, short-circuit, and over-temperature protection (Tibbits #25 and #18)
Field busRS485, Modbus RTU master, on screw terminals; on-board 120Ω termination; 5V output for low-power devices (Tibbits #05 and #20)
UplinkOne 10/100BaseT(X) Ethernet port (RJ45, 1.5kV magnetic isolation); Wi-Fi or 4G/LTE, depending on version
Serial settings1200–921,600bps; none/even/odd parity; 7 or 8 bits/character
Modbus functionsFC1, FC2, FC3, FC4 (read)
TagsUp to 30, each with its own slave ID, address, function code, name, and multiplier
Polling0–600s interval; 1000ms response timeout; up to 10 outstanding requests
MQTTMQTT 3.1.1 client; client ID, username/password, optional TLS; QoS 0; 30s keep-alive; publish interval ≥ 5s
PayloadScaled plain value, one topic per tag (<prefix>/<tag-name>)
On-device storage10,000-sample log, 200-record event log (flash)
TimeSNTP with configurable time zone
ConfigurationBuilt-in web console (HTTP 1.1 server, port 80), password protected
Operating temperature−40 to +70°C
ComplianceTPP2(G2) board: CE, FCC Part 15 Subpart B Class B, RoHS 3

Frequently asked questions

Does it support Modbus TCP?

The standard build is a Modbus RTU master on RS485. Modbus TCP can be enabled in the AppBlocks project on request — contact us. If you need to route between Modbus TCP, RTU, and ASCII rather than publish to MQTT, see our Modbus Gateways.

How many devices and registers can one Gateway handle?

Up to 30 tags, spread across any slaves on the RS485 bus (slave IDs 1–255). Each tag is one register or coil with its own name and multiplier. For larger points lists, use one Gateway per bus or panel, or ask us about a tailored build.

What does the MQTT message look like?

Each tag is published to <topic-prefix>/<tag-name> with the scaled value as a plain payload — for example, plant1/line2/boiler_temp carrying 72.4. A JSON envelope or a different topic layout can be added in AppBlocks.

Which brokers does it work with?

Any standard MQTT broker, such as Mosquitto, EMQX, or HiveMQ, on your premises or in the cloud. TLS is available for encrypted connections to cloud brokers.

What happens if the broker or network goes down?

Modbus polling carries on. Every reading is timestamped and stored in the 10,000-sample log on the device, and publishing resumes on its normal schedule once the broker is reachable again.

Do I need to write any code?

No. Everything — the register map, serial settings, polling schedule, and MQTT connection — is configured in the built-in web console.

Can I customize the application?

Yes. The Gateway is built in AppBlocks, Tibbo's no-code flowchart editor, and the project is published on GitHub. Open it, change the flowchart, and load it onto your device.

How is it secured?

The web console is password protected, the broker connection supports username/password authentication, and TLS encrypts traffic to the broker.

Put your Modbus devices on MQTT

Hardware and application in one box. Ships ready to configure from your browser.