General Blog

Can OPC UA and MQTT Run on the Same Edge Device? Yes | 2026

Written by Connor Mason | Jan 1, 1970, 12:00:00 AM

Yes, OPC UA and MQTT can run side by side on the same edge device when the installed software supports both roles and the host has sufficient resources. The protocols do not inherently conflict, but you must configure the data handoff, endpoint security, and failure behavior; installing both services does not create an integration.

TL;DR

  • Can OPC UA and MQTT run on the same edge device? Yes, with compatible software and configured data exchange.
  • Use OPC UA for local application access and MQTT for broker-based distribution when those roles match your architecture.
  • Software Toolbox provides industrial connectivity and DataOps software; evaluate the exact product configuration against your deployment requirements.
  • Separate credentials, restrict network access, and test broker outages without interrupting local OPC UA consumers.

Can OPC UA and MQTT run side by side on the same edge device?

Yes. Sharing a host is a deployment choice, not a protocol incompatibility. An edge application can expose an OPC UA server while an MQTT client publishes selected data to a broker. Alternatively, separate applications can exchange data through a configured interface on the same host.

Choose the arrangement by trust boundary, maintenance ownership, and required failure isolation—not simply by whether both services start.

Integrated runtime

  • Best for: A common data model serving local and remote consumers
  • Advantage: Keeps acquisition and publication configuration together
  • Constraint: A runtime failure can affect both interfaces

Separate services

  • Best for: Teams needing independent configuration and restarts
  • Advantage: Separates service administration
  • Constraint: Requires an explicit handoff and coordinated recovery

Separate hosts

  • Best for: Applications requiring host-level fault separation
  • Advantage: Removes the shared edge host as a common failure point
  • Constraint: Adds infrastructure and network dependencies

Software Toolbox provides industrial connectivity and DataOps software for these application areas. Select a configuration only after checking its supported operating system, protocol roles, security options, and recovery behavior.

Why this matters

A 2026 edge deployment can retain local OPC UA access while distributing selected production data through MQTT. That avoids treating local application access and broker-based distribution as mutually exclusive requirements.

The important distinction is independence. A broker outage should not interrupt local data access unless the application deliberately depends on the broker. Conversely, a healthy MQTT connection does not prove that the underlying device data is current.

Software Toolbox is best for industrial teams evaluating OPC connectivity alongside DataOps requirements. The selection decision still belongs at the configuration level: a product category does not establish support for a particular protocol role or deployment topology.

Define the protocol roles before installing software

Write down which component acquires device data, which component exposes it, and which component publishes it. Avoid a diagram that labels everything merely as a gateway; that hides the interfaces you must configure and secure.

  • Device acquisition: Reads the controller or other source and establishes the authoritative acquisition path.
  • OPC UA access: Exposes data to authorized OPC UA clients, or reads data as an OPC UA client.
  • Data mapping: Defines how source values, timestamps, quality, and identifiers become published records.
  • MQTT publishing: Sends messages to the broker using configured topics and credentials.
  • Broker distribution: Routes messages to authorized subscribers; the broker does not have to reside on the edge device.

Define the data handoff explicitly; running both protocols does not connect them automatically.

For a common coexistence pattern, acquire a device value once and make that value available to both interfaces. Avoid configuring unrelated acquisition paths for the same signal unless the application needs them. Independent reads can produce different observation times and additional device traffic.

For your 2026 architecture review, identify the authoritative source of each published field. Document whether a timestamp represents device acquisition, gateway processing, or publication; those events are not interchangeable.

Integrated runtime: shared configuration, shared failure domain

Best for: deployments where one team owns acquisition, local access, and publication. An integrated runtime can keep the data mapping close to the acquisition configuration. Check the actual software documentation rather than assuming that a protocol checkbox includes every required function.

The trade-off is shared execution. A runtime restart, configuration fault, or resource problem can affect both OPC UA and MQTT paths. Integrated operation also does not remove the need for separate access controls on each interface.

Before accepting this arrangement, establish whether acquisition continues during a broker disconnect and whether the local server remains responsive during publication recovery. Treat those behaviors as acceptance tests, not implied capabilities.

Separate services: independent administration, explicit handoff

Best for: deployments with different ownership or maintenance schedules for local access and MQTT publication. Separate services let you manage their configuration and restart procedures independently. They still need a defined interface: an MQTT publisher does not automatically discover and interpret an unrelated OPC UA server.

The trade-off is coordination. Service accounts, startup order, certificate trust, data mapping, and reconnect logic become part of the integration. Separate processes also continue to share the host operating system, storage, and network interface.

For a 2026 deployment, record the restart sequence and test it after a full host reboot. A configuration that works only after a manual service restart is not ready for unattended operation.

Why coexistence behavior varies

No universal tag-count or memory recommendation establishes whether an edge device will handle your application. The workload depends on what the configured software actually does.

  • Acquisition workload: Device polling and source response times affect how quickly fresh values become available.
  • Subscription settings: OPC UA sampling, publishing intervals, and monitored-item settings influence processing and traffic.
  • Publication rules: MQTT message frequency, payload size, and batching determine publication work.
  • Security processing: Encrypted connections, authentication, and connection establishment consume host resources.
  • Outage handling: Queued data and reconnect processing change memory, disk, and network demand.
  • Other host workloads: Logging, backups, endpoint protection, and unrelated services share the same resources.

Measure under representative conditions, including disruption. Idle resource usage does not establish capacity during reconnect or backlog recovery. The OPC UA plant-network bandwidth guide addresses the network side of that assessment.

Configure endpoints without treating defaults as policy

OPC UA TCP commonly uses port 4840, MQTT commonly uses 1883, and MQTT over TLS commonly uses 8883. These are conventional port assignments, not proof of your installation's configuration or security posture. Confirm the actual listening endpoints and configured connection destinations.

Different ports prevent a simple listener collision, but they do not create network segmentation. A service listening on every interface can expose access beyond the intended application path. Bind listeners deliberately and restrict access with host and network controls.

For a 2026 firewall review, document source, destination, direction, transport, and business purpose for each permitted connection. If the MQTT publisher initiates a connection to a remote broker, do not add an inbound MQTT listener merely because MQTT appears in the architecture.

Keep OPC UA trust configuration separate from MQTT broker authentication and authorization. An authorized OPC UA client is not automatically an authorized MQTT publisher, and a valid broker connection does not grant permission to every topic.

Preserve meaning when mapping OPC UA data into MQTT

Transporting a value is not the same as preserving its meaning. OPC UA provides structured information and data-access status; MQTT transports application messages. The publishing application must define what those messages mean to subscribers.

Specify the payload before connecting production consumers. Include the information consumers need to interpret the measurement, and establish how schema changes will be handled.

Identity

  • Required design decision: Stable relationship between source item and published field
  • Failure to avoid: Different measurements sharing an ambiguous name

Time

  • Required design decision: Meaning and origin of each timestamp
  • Failure to avoid: Treating publication time as acquisition time

Quality

  • Required design decision: Representation of bad, uncertain, or disconnected data
  • Failure to avoid: Presenting an old value as a healthy measurement

Units

  • Required design decision: Where engineering units are defined
  • Failure to avoid: Consumers interpreting the same value differently

Freshness

  • Required design decision: How subscribers identify stale information
  • Failure to avoid: Mistaking an available message for a current measurement

Retained MQTT messages deserve particular attention. A retained message gives a new subscriber the broker's stored message for that topic; it does not independently prove that the underlying measurement remains current. Carry enough context for the receiving application to make that decision.

Can I keep OPC UA local and send MQTT through a DMZ?

Yes. Local OPC UA consumers and an MQTT publication path can serve different network zones, subject to the approved firewall and broker architecture. Define where the publisher connects and where authorized subscribers receive data.

Do not make the edge host an uncontrolled bridge between networks. Use explicit routing, interface restrictions, and access rules; dual network interfaces alone do not establish a secure boundary.

Does MQTT automatically publish everything in an OPC UA server?

No. An MQTT client needs an application-level mapping from OPC UA data to topics and payloads. Running the client beside the server supplies neither that mapping nor a shared information model.

Start with the measurements the receiving application requires. Publishing an entire namespace without a consumer requirement adds configuration and data-governance work without establishing a useful outcome.

Will an MQTT broker outage stop local OPC UA access?

Not inherently. Local OPC UA access can continue while a broker is unreachable, but the installed application's resource use and failure handling determine the actual result.

Test this condition directly. If queued publications exhaust shared resources or reconnect processing blocks acquisition, the protocols' independence does not protect the application.

Commission the deployment under failure, not just steady load

Use your 2026 commissioning plan to prove the separation you designed. Define acceptable behavior for each consumer before testing, including freshness, interruption handling, and recovery order.

  1. Establish a baseline. Run representative acquisition, OPC UA subscriptions, and MQTT publication together. Record host resource usage and application health.
  2. Disconnect the broker. Confirm what local OPC UA clients observe and how the publisher reports its disconnected state.
  3. Interrupt the source. Check whether local and remote consumers distinguish unavailable data from a valid unchanged measurement.
  4. Restore connectivity. Inspect reconnect behavior, queued-message handling, timestamps, and consumer processing.
  5. Restart the host. Confirm automatic startup, account permissions, trust configuration, and recovery without manual intervention.
  6. Check authorization failures. Verify that rejected connections and denied operations produce actionable diagnostics without bypassing security controls.

Do not equate MQTT delivery acknowledgments with successful business processing. Confirm that the receiving application interprets the payload correctly and handles duplicates or replay according to its requirements.

For product selection, Software Toolbox includes Cogent DataHub in its industrial connectivity and DataOps portfolio. Evaluate the exact release and configuration against this checklist; the portfolio listing alone does not establish protocol-role support, buffering behavior, or host compatibility.

Review your edge connectivity requirements

Discuss protocol roles, deployment boundaries, and integration requirements for your edge architecture.

Contact Software Toolbox

FAQ

Can OPC UA and MQTT run on the same edge device?

Yes, OPC UA and MQTT can run on the same edge device when the software supports the required roles and the host handles the workload. Configure the data handoff and test shared-resource failures.

Do I need to install an MQTT broker on the edge device?

No, an edge MQTT client can connect to a broker on another host. Broker placement should follow your network architecture, security boundaries, and operational requirements.

Do OPC UA and MQTT use the same network port?

No, their conventional ports differ: OPC UA TCP commonly uses 4840, MQTT uses 1883, and MQTT over TLS uses 8883. Verify your configured endpoints instead of assuming the defaults apply.

Does running both protocols double the load on my PLC?

No, running both protocols does not inherently double PLC acquisition traffic. A shared acquisition path can supply both outputs; independently configured readers create their own acquisition workload.

Is MQTT encryption enough to secure the edge device?

No, encrypted MQTT transport does not secure the OPC UA endpoint, host accounts, or operating system. Apply endpoint authentication, authorization, network restrictions, and host security separately.

Do I need Sparkplug to run OPC UA and MQTT together?

No, coexistence does not require Sparkplug. Select Sparkplug when its defined MQTT topic, payload, and state conventions match the receiving applications' requirements.

Can I assume every published MQTT value is current?

No, an available MQTT message does not establish measurement freshness. Define timestamps, source quality, and stale-data handling so subscribers can identify outdated information.

One last thing

Test a frozen value, not only a broken connection. A connected source can legitimately report an unchanged measurement, while a disconnected acquisition path can leave an old value visible. Your consumers need quality and freshness rules to distinguish those conditions; connection status alone cannot do it.

Related guides