How to Connect an MQTT Broker to SCADA Cloud
SCADA Cloud subscribes directly to any MQTT broker and turns incoming messages into live dashboard tags — no on-premise server, no VPN into your plant network, and no custom code to write. This guide walks through connecting a broker, mapping payloads to tags, and building your first live dashboard from MQTT data.
plant1/line3/sensor7/telemetry).Why Connect MQTT to SCADA Cloud
Modbus is built for polling — the master asks, the device answers. MQTT is the opposite: devices publish data whenever it changes, and subscribers (like SCADA Cloud) receive it in real time without asking. This publish/subscribe model fits IIoT sensors, edge gateways, and modern PLCs with native MQTT support far better than polling, especially at scale across many remote sites. Instead of building and maintaining your own MQTT subscriber and dashboard stack, SCADA Cloud does the connection, parsing, storage, alarming, and visualization for you.
Step 1 — Create Your SCADA Cloud Account
Register for free
Go to scada.modbussimulator.com/register and create an account. The 60-day free trial requires no credit card and includes unlimited MQTT and Modbus connections.
Step 2 — Add an MQTT Connection
Configure the broker connection
Go to Devices → Add Device → MQTT. Enter:
• Broker hostname — e.g. broker.example.com or your AWS IoT Core / Azure IoT Hub endpoint
• Port — typically 1883 (unencrypted) or 8883 (TLS)
• Client ID — a unique identifier for this SCADA Cloud connection
• Authentication — username/password, or upload a client certificate for mutual TLS
• Protocol version — MQTT 3.1.1 or MQTT 5.0
Step 3 — Subscribe to Topics
Once the broker connection shows Connected, add one or more topic subscriptions.
Add a topic filter
Enter the topic pattern your devices publish to, using standard MQTT wildcards:
• + matches exactly one topic level, e.g. plant1/+/telemetry
• # matches all remaining levels, e.g. plant1/line3/#
Example: subscribing to plant1/line3/+/telemetry captures messages from every sensor under line 3 in a single subscription, without listing each sensor individually.
Step 4 — Map Payload Fields to Tags
SCADA Cloud needs to know which fields inside each MQTT message correspond to which tags on your dashboard.
JSON payload mapping
Paste a sample payload, for example:
{
"device_id": "sensor7",
"temperature": 68.4,
"pressure": 4.12,
"status": "running",
"ts": "2026-07-09T10:15:00Z"
}
SCADA Cloud auto-detects the fields. Map temperature and pressure to numeric tags with units, and status to a string/enum tag. Nested JSON fields are supported using dot notation, e.g. power.voltage.phaseA.
CSV payload mapping
If your devices publish comma-separated values instead of JSON, set the delimiter and map each column position (0, 1, 2...) to a named tag with a data type. This is common with simpler edge devices that can't serialize JSON.
device_id field (or a topic-level wildcard segment) to automatically split incoming messages into per-device tag groups, so ten sensors publishing on one wildcard subscription still appear as ten separate devices on your dashboard.Step 5 — Build a Live Dashboard
Go to Dashboard → Edit Mode and drag widgets onto the canvas — number displays, gauges, trend charts, and status indicators — then bind each widget to an MQTT-mapped tag. Data updates on the dashboard the instant a new MQTT message arrives; there's no polling delay like you'd see with a traditional Modbus dashboard.
Step 6 — Configure Alarms
Go to Alarms → Add Alarm, select an MQTT-mapped tag, and set a threshold condition (above, below, equals). Enable email or SMS notification for critical conditions. You can also create a dedicated alarm rule that fires when the MQTT connection itself drops, so a broker outage doesn't silently freeze your dashboard without anyone noticing.
MQTT + Modbus in the Same Dashboard
Most plants aren't purely MQTT or purely Modbus — a typical setup has legacy PLCs on Modbus TCP alongside newer IIoT sensors publishing over MQTT. SCADA Cloud lets you combine both data sources on the same dashboard, trend chart, and alarm rule set, so your operators get one unified view regardless of how each device communicates. If you're validating a Modbus device before wiring it into the same dashboard, you can simulate it first with a Modbus slave simulator to confirm register values and connectivity without touching production hardware.
Troubleshooting Common Issues
Broker shows "Disconnected"
- Verify the hostname and port — TLS brokers usually use 8883, not 1883.
- Check credentials; some brokers (like AWS IoT Core) require client certificate auth rather than username/password.
- Confirm the broker allows external subscribers — some brokers restrict client IDs or require an allowlist.
Topic subscribed but no tags appear
- Confirm the topic filter actually matches what devices are publishing — use a tool like MQTT Explorer against the same broker to see raw topics first.
- Check that your payload is valid JSON or matches your configured CSV delimiter.
Tags show stale values
- Check the device's publish interval — if it only publishes on change, a stable process may simply not have sent a new message recently.
- Verify the MQTT connection status; a silent reconnect loop can cause missed messages during the outage window.
Connect Your MQTT Broker in Minutes
60-day free trial. No credit card. Any MQTT broker, unlimited topics, Modbus TCP/RTU included.
Start Free 60-Day Trial → See Live Demo →