Explainer
Why MQTT needs a broker and cannot run PLC to device
Short answer
MQTT versions 3.1.1 and 5 are client-server publish/subscribe protocols with no peer-to-peer mode, so your 5069-L306ER and the publishing device both need a broker. Keep the broker and choose its production host: a maintained plant server or a dedicated industrial box PC running a maintained broker, with the prototype board retired.

On this page
No. Your 5069-L306ER CompactLogix 5380 cannot exchange MQTT messages with the publishing device without a broker, and no configuration will change that. MQTT versions 3.1.1 and 5 define a client-server publish/subscribe transport, and neither version defines peer-to-peer communication between two clients. The device and the controller each terminate their MQTT session at a broker, so the broker is not a component you can bypass or wire around. What you can decide is where that broker runs for an industrial job. The prototype on the single-board computer proved the message path; production needs a maintained host, and that host is either the plant server or a dedicated industrial box PC in the cabinet.
What the specification requires #
The MQTT specification, published as an OASIS standard in versions 3.1.1 and 5, defines exactly two roles. A client publishes and subscribes. A broker, the server side, accepts client connections, holds the subscriptions and routes every published message to the clients subscribed to its topic. The forwarding rule is fixed: publish to the broker, broker to subscriber. There is no clause in either version in which one client delivers a message to another client, because delivery is defined as an action the broker performs.
This is why the question of removing the broker has a closed answer. A working MQTT deployment has at least one broker in it by definition, and the number of brokers is one unless you deliberately build redundancy. If you want the broker gone, you have to stop using MQTT between those endpoints, not reconfigure MQTT.
Why two MQTT clients cannot talk directly #
An MQTT client is an outbound-only thing at the transport level. It opens a TCP connection to a broker's listening port, sends its connect packet and expects a broker on the other end. It does not listen for other clients, and the protocol defines no discovery, no listen mode and no routing behavior for a client. Point your publishing device's client at the PLC's address and the connection either fails outright or gets no MQTT-level response, because the client stack in the controller is not a broker and will not accept the session.
The one arrangement that looks like a direct link is running broker software on one of the two endpoints. That still is a broker: the device publishes to it and the PLC's client subscribes through it. It changes where the broker lives, not whether one exists. For your controller specifically, there is no broker service to enable; its MQTT support is the client side, so the broker has to be an external host either way.
Where the broker runs in your plant #
You have three candidate hosts, and the decision is about maintenance coverage rather than the protocol:
- The single-board computer prototype. It proved the message path, which was its job. What the prototype run does not establish is that the board meets the reliability, temperature and support expectations of an industrial installation, so retire it when production starts.
- The plant server. A valid production host if, and only if, it is inside the plant's normal maintenance scope: patched with the rest of the servers, covered by backup, monitored, and with the broker service set to start at boot. If it is inside that scope, your instinct that it is "not ideal" is doing more work than the facts; a maintained server beats an unmaintained appliance.
- A dedicated industrial box PC. The right choice when the broker should live in the cabinet near the machine, on the plant VLAN, as a small maintained appliance. When you reach that choice, specify a fanless industrial mini PC as the broker host, run a maintained broker on it such as Mosquitto, and set the service to start with the operating system so a power cycle restores the message path without anyone logging in.
On the separate question of whether the broker belongs in the controller or outside it, the trade-offs are covered in running an MQTT broker in the PLC or on a separate device; for the 5380 the answer is settled by its client-only MQTT support, but the reasoning applies to controllers that can host one.
Worked example: one MQTT device, one 5069-L306ER, one message path #
Take your own case and count the paths.
Inputs:
- Field device: publishes MQTT as a client, from your setup.
- Controller: 5069-L306ER CompactLogix 5380, configured as an MQTT client, from your setup.
- Broker hosts available: one single-board computer (prototype) and one plant server (proposed), from your setup.
- Protocol: MQTT 3.1.1 or 5, from the specification.
The rule, in words: a delivered message needs exactly one broker between publisher and subscriber, and each client holds one outbound session to that broker. The specification defines no path that does not pass through a broker.
The arithmetic:
- Peer-to-peer message paths defined by the protocol: 0.
- Client sessions a working path needs: 1 publisher session + 1 subscriber session = 2 sessions, both landing on the broker.
- Message paths with one broker in place: 1, carried by those 2 sessions (device to broker, broker to PLC).
Result: with no broker you have 0 deliverable paths, and no wiring or configuration changes that count. With one broker you have 1 working path, and the two sessions are the only things you have to keep alive.
The test that proves it: start the broker, publish from the device and confirm the value arrives in the controller's MQTT client. Then stop the broker service and confirm the controller's session drops and the loss is detected, by the client status and by the alarm you build on it. If messages kept flowing with the broker stopped, they would not be MQTT; they do not, and that failed path is your proof that delivery depends on the broker.
The decision: since the path count without a broker is zero, keep exactly one broker in production. The threshold for replacing a host is maintenance coverage: the moment the broker host falls outside the plant's patching, backup and monitoring scope, move the broker to a dedicated box PC in the cabinet. By that rule the prototype board is already out, and the plant server stays only if it is genuinely maintained.
If the broker must go, change the protocol #
If a broker is architecturally unacceptable on the device side, the honest options are two, and neither is brokerless MQTT. First, put a gateway between the endpoints that speaks a PLC-native protocol to the controller and terminates the device's MQTT on the other side; the comparison of PLC MQTT direct publishing versus an IoT gateway lays out when that split pays off. The gateway still contains broker functionality for the device-facing side, so this moves the broker rather than deleting it. Second, drop MQTT entirely and use a protocol the device supports that the controller can consume directly.
For an MQTT-only field device and a 5380, the decision is simple: keep one broker, put it on a maintained host with the service starting at boot, alarm the session state, and treat anything that claims to remove the broker as a misunderstanding of the specification.
Questions asked
Can the 5069-L306ER host the broker itself?
No. No broker service is documented for the CompactLogix 5380; its MQTT support is a client that publishes and subscribes through an external broker. Plan a separate host for the broker and point both the controller and the field device at it. Whether that host sits in the PLC cell or further back is a placement decision, not a protocol one.
Does MQTT version 5 remove the need for a broker?
No. Version 5 keeps the same client-server model and adds features such as shared subscriptions, session expiry and reason codes on a failed publish. Every one of those features is negotiated between a client and a broker, so a broker-free deployment is still undefined by the specification. Upgrading the version changes what the broker can do, not whether you need one.
Is a broker on the plant server worse than a dedicated device?
Not by itself. Reliability follows the maintenance scope: a server that is patched, backed up, monitored and restarts the broker service at boot is a sound production host. An unmaintained server, or a prototype board outside that scope, is the real risk. Judge the host by its maintenance coverage and by the test that proves the session drops cleanly, not by its label.
What happens to messages while the broker is down?
That depends on the quality of service and session settings you configure. A subscriber with a clean session loses whatever was published while it was away, while a persistent session lets the broker queue messages for a reconnecting client. Decide per tag whether a gap is acceptable, and alarm the lost session either way so the gap is visible to operations.


