Before a single machine on your line publishes data, you need to know that the path it will travel works. A failed connection found in a test costs a few minutes, but that same failure found during a production run costs output.
This post, the second in our HiveMQ Platform series, shows how to connect an MQTT broker to the HiveMQ Platform with Kudzai Manditereza. Kudzai shows how to deploy a self-managed broker locally with Docker, then push simulated traffic through it to confirm the platform can see the data.
- The platform generates the Docker command and connection configuration for you, so a self-managed broker links to your workspace without manual setup.
- A built-in simulated data option publishes test MQTT messages, so you can validate the connection without touching a running line.
- Once data flows, Discovery in Contextualize shows the ungoverned MQTT traffic moving through your broker, ready to bring into a governed namespace.
Who this blog is for: OT engineers and data teams in manufacturing who want to stand up a broker and see their data in the HiveMQ Platform.
Before a single machine on your line publishes data, you need to know that the path it will travel works. A failed connection found in a test costs a few minutes, but that same failure found during a production run costs output.
This post, the second in our HiveMQ Platform series, shows how to connect an MQTT broker to the HiveMQ Platform. We deploy a self-managed broker locally with Docker, then push simulated traffic through it to confirm the platform can see the data.
First, a reminder: An MQTT broker is the server that receives messages from publishing devices and routes them to every system subscribed to that data. If you're new to MQTT and want to understand how brokers, publishers and subscribers work together, explore our MQTT Essentials series. Connecting it to the HiveMQ Platform makes the data flowing through it visible and ready to contextualize.
Why connect your MQTT broker before you connect your devices?
Connecting the MQTT broker first proves the data path works before production equipment depends on it. In a plant, that order matters. Teams can't afford to troubleshoot connectivity while a line is waiting for data or a shift is relying on a dashboard.
A tested connection gives you a known-good baseline. When real PLCs and sensors start publishing later, any problem points to the device side rather than the broker or platform.
This is the groundwork behind the outcomes manufacturers care about. Mercedes-Benz keeps critical vehicle testing running across 24 factories on a reliable MQTT foundation.
How do you deploy a new MQTT broker from the HiveMQ Platform?
You deploy a new broker from Connect, the area of the platform where you manage the brokers and edge instances in your workspace. The platform walks you through each choice and generates everything the broker needs to reach your workspace.
- Open Connect and select Get broker or edge.
- Choose Deploy a new broker rather than connecting an existing deployment.
- Select HiveMQ Software to run a self-managed broker in your own environment. The other options are HiveMQ Edge and HiveMQ Cloud.
- Pick a deployment target. The platform supports Docker, Kubernetes, a local install, AWS and Azure. This tutorial uses Docker.
- Under the license section, select Get a free license. The platform creates a license for this broker and associates it with your workspace.
:format(webp))
What does the HiveMQ platform generate for you?
Once the license is in place, the page shows your license information alongside deployment instructions. These include the Docker command to run the broker and the configuration it needs to connect back to the platform.
There's no manual configuration to write. That matters when you repeat the process at a second plant, because the connection settings come from the same source every time.
How do you run the MQTT broker and confirm it's connected?
You run the broker by pasting the generated Docker command into a terminal, and the platform confirms the connection on its own. The command already carries everything the broker needs to reach your workspace.
- Copy the Docker command from the deployment page.
- Run it in your terminal. Docker downloads the image and starts the broker.
- When the download finishes, the broker provisions itself in your workspace automatically.
- Back in the platform, the deployment page shows the broker running with the license you selected. Select View broker.
The broker page shows a Connected status, which confirms the broker is communicating with the platform. The overview also lists the broker details and connection status alongside the license information.
At this point you have a broker running locally that is connected to your HiveMQ Platform workspace.
:format(webp))
How can you test the connection with simulated MQTT data?
You can test the connection with the platform's simulated data option, which runs the MQTT CLI in a Docker container to publish test messages to your broker. No real devices are needed, so nothing on the plant floor is affected.
- On the broker page, go to Connect your devices. You'll see client options for several programming languages and a Simulated data option.
- Select Simulated data. The platform shows a command that runs the MQTT CLI in Docker, along with the topic the simulator publishes to.
- Copy the command and run it in your terminal.
The simulator starts publishing MQTT messages to your broker straight away. You now have a running broker with data flowing through it, and you can see how the platform handles that data before connecting a single machine.
Where does the simulated data show up in the HiveMQ platform?
The simulated data shows up in Discovery, under Contextualize, as ungoverned MQTT traffic. Because the broker is connected and publishing, the platform detects the traffic without any extra setup.
This view tells you what is flowing through your broker right now. For a team bringing a new line or site online, that visibility is the starting point. You can check topics and payloads against what you expect before anyone builds a dashboard or a KPI on top of them.
From Discovery, you can choose which traffic to bring into a governed namespace, where it gets consistent structure and meaning. That's the subject of the next post in this series.
:format(webp))
What comes next in the HiveMQ Platform tour?
You now have a self-managed broker connected to the HiveMQ Platform, with simulated traffic flowing through it and visible in Discovery. That gives you a tested data path you can rely on when real equipment comes online.
In the next post, we'll take the ungoverned traffic found in Discovery and bring it into a governed namespace. If you missed the start of the series, read part 1 for a tour of the full platform. Before that if you’d like to understand how raw MQTT data becomes structured, governed operational information, read our blog, Contextualize: Turning Data Into Understandable Operational Information.
Try HiveMQ: Connect your first broker to the HiveMQ Platform and see your data in Discovery.
