Skip to content

Architecture ​

ConnectMQ Cloud moves data from the things you connect to the applications that use it. Devices and gateways publish to a fully managed MQTT broker; the web console, your MES or your analytics subscribe. This page follows that flow from end to end.

ConnectMQ Cloud architecture Sensors and devices publish over MQTT with TLS to the ConnectMQ broker. PLCs, meters and relays are read by ConnectMQ Edge, which publishes to the broker and serves local SCADA. The broker converts Sparkplug B to ISA-95 JSON, checks every client with the Broker API and delivers messages to your applications and, over secure WebSockets, to the web console. The web console and Edge use the Console API for accounts, credentials and alerts. FieldEdgeApplicationsConnectMQ CloudMQTT · TLS 8883field protocolsMQTT · TLS 8883OPC UA · MQTTMQTT · TLS 8883WSS 8084auth · ACLshared databaseHTTPSsign-inSensors & devicesSensors · ESP32 · ArduinoRaspberry Pi · Node-RED · scriptsMachinesSiemens S7 · OMRON · ModbusIEC 104 · IEC 61850 · OPC UAConnectMQ EdgeWindows service · 10 driversISA-95 JSON · offline buffer on diskLocal OPC UA :48010 · MQTT :1883Local SCADA · HMIMES · historiansMQTT brokerbroker.connectmq.comTLS 8883 · WSS 8084 · MQTT 3.1.1 and 5Isolated per organizationSparkplug B → ISA-95 JSONBroker APIDevice authenticationACL · quotas · sessionsConsole APIAccounts · credentials · plansAlert rules · alerts · sign-inYour applicationsMES · ERP · SCADA · OEEMaintenance · analytics · AI agentsWeb consoleapp.connectmq.comDashboard · alerts · Digital TwinMQTT messagesManagement over HTTPS

The publish-subscribe pattern ​

HTTP and most industrial protocols use request-response: a client asks a specific server and waits for the answer. MQTT uses publish-subscribe: senders and receivers never talk to each other directly. They only talk to the broker.

Request-response (HTTP, Modbus polling)Publish-subscribe (MQTT)
Who knows whomThe client must know every server it readsPublishers and subscribers only know the broker
When data movesWhen someone asksWhen something changes
Adding a consumerAnother client polling every sourceOne more subscription; sources are untouched
Many receiversEvery receiver asks separatelyOne publish reaches every subscriber
Through firewallsServers must be reachableEvery client connects out to the broker

That decoupling is what lets a press, its gateway, the web console, an MES and a maintenance model share data without any of them knowing about the others.

How it works ​

  1. A client publishes a message to a topic, for example a gateway sends {"value":78} to acme/dallas/press-shop/line-2/press-08/oil-temp.
  2. ConnectMQ Cloud receives and checks it. The broker knows the client from its authenticated connection, checks your access control rules and your plan's limits, and keeps the message if it is retained.
  3. The broker delivers it to every subscriber in your organization whose subscription matches the topic, including wildcard subscriptions such as acme/dallas/#, at the QoS each of them asked for. The web console, your MES and your andon light each receive their own copy.

The broker never changes your messages. The one addition is the automatic conversion of Sparkplug B below.

Automatic ISA-95 and Sparkplug B conversion ​

ConnectMQ Cloud is built around the ISA-95 hierarchy, so plant data lands in one Unified Namespace:

  • ISA-95 topics are recognised automatically. Publish to enterprise/site/area/line/device/signal and the console builds the topic tree, the device list and the Digital Twin from it, with no configuration.
  • ConnectMQ Edge publishes ISA-95 out of the box. Every PLC, meter and relay tag arrives as enterprise/site/area/line/cell/device/tag with a JSON payload.
  • Sparkplug B is supported and converted automatically. Sparkplug B nodes such as Ignition can publish to ConnectMQ directly or through ConnectMQ Edge. The broker delivers the original spBv1.0/... messages unchanged and also publishes a readable JSON copy on an ISA-95 topic, ready for dashboards, alerts and the Digital Twin:
text
spBv1.0/plant1_packing/DDATA/line1/filler1          protobuf, as published
connectmq/plant1/packing/line1/filler1/telemetry    {"Temperature":71.4,"Speed":120,"Running":true}

How groups, edge nodes, devices and message types map to ISA-95 is described on the Sparkplug B page.

The components ​

Field: sensors, devices and machines ​

Everything that produces data. There are two ways in:

  • Devices that speak MQTT connect straight to the broker: ESP32 and Arduino boards, Raspberry Pi and Linux gateways, Node-RED flows, Home Assistant, scripts and back-end services. See Code samples for each platform.
  • Machines that speak industrial protocols (Siemens S7 and OMRON PLCs, Modbus meters and drives, IEC 60870-5-104 RTUs, IEC 61850 protection relays, OPC UA servers) connect through ConnectMQ Edge.

ConnectMQ Edge: the gateway on the shop floor ​

A Windows service that runs next to your machines (Windows 10/11 or Windows Server 2016+, included in the Basic and Scale plans). It:

  1. reads the machines with its connectors, configured from templates without writing code;
  2. turns every tag into a JSON message with value, quality, unit and timestamp in an ISA-95 topic tree (enterprise/site/area/line/cell/device/tag);
  3. publishes the messages to the ConnectMQ broker over MQTT with TLS;
  4. buffers readings on disk while the internet is down and sends them when the link is back, so your history has no gaps (offline buffer);
  5. serves the same data locally on its own OPC UA server and MQTT broker (ports 48010 and 1883), so SCADA, HMI, MES and historians on site read one endpoint instead of many protocols.

Edge signs in with your ConnectMQ account and uses one of your broker credential sets, so you never type broker passwords into it.

MQTT broker: the core of ConnectMQ Cloud ​

broker.connectmq.com is the single entry point for every client. It speaks MQTT 3.1.1 and MQTT 5 over:

  • TLS on port 8883 for devices, gateways and services;
  • secure WebSockets on port 8084 (/mqtt) for browsers and networks that only allow HTTPS-like traffic.

Each organization gets an isolated broker namespace: your clients only see your topics. The broker routes every published message to every client subscribed to a matching topic filter, keeps retained messages, and delivers Last Will messages when a client disappears. There are no servers for you to install, patch or scale.

If your message payloads must stay in your own cloud account, the same broker is available as the official connectmqcom/broker Docker image for Bring Your Own Cloud (BYOC); compare both options in ConnectMQ Cloud vs BYOC.

Broker API: who may connect and what they may do ​

When a client connects, the broker checks it with the Broker API:

  • the username and password of one of your credential sets;
  • the client ID, which must be the issued client ID or start with it (client ID rule);
  • your plan's limits: concurrent connections, message rate, message size and more (limits);
  • your access control rules, which decide per topic who may publish and subscribe (ACL).

The broker also reports sessions, topic activity and usage back, which is where the console's connection list, topic list and session-minute counters come from.

Console API and the web console ​

The web console at app.connectmq.com is where you manage and watch everything:

  • Live data: the console itself connects to the broker over secure WebSockets and subscribes to your topics, so dashboards, sparklines and the Digital Twin update the moment a message arrives.
  • Management: accounts, team members, credential sets, ACL policies, plans and billing go through the Console API over HTTPS and are stored in the ConnectMQ database.
  • Alerts: alert rules are stored on the server and evaluated by the console on the messages it receives; raised alerts are saved and shared with everyone in your organization.

Your applications ​

Anything that speaks MQTT can subscribe next to the console: MES and ERP integrations, SCADA and andon screens, OEE and energy dashboards, predictive-maintenance models and AI agents. Each application connects with its own credentials and subscribes to the topics it needs, so you add a new consumer without touching the devices that publish.

Following one message ​

A temperature reading from a machine on line 2, from the sensor to the screen:

  1. Read. ConnectMQ Edge polls the PLC every second and gets 78 °C for the hydraulic oil.
  2. Publish. Edge publishes {"value":78,"unit":"°C","quality":"good",...} to acme/dallas/press-shop/line-2/press-08/oil-temp over TLS on port 8883. A device that speaks MQTT, such as an ESP32, publishes the same way without Edge.
  3. Authorize. The broker already authenticated Edge when it connected; it now checks the ACL to see that this credential set may publish to the topic.
  4. Route. The broker delivers the message to every subscriber with a matching filter, for example acme/dallas/press-shop/line-2/#.
  5. Show. The web console receives it over secure WebSockets: the topic card and sparkline update, an alert rule value > 75 raises an alert, and the press in the Digital Twin switches to ALERT.
  6. Act. Your maintenance system, subscribed to the same filter, opens a work order and publishes {"color":"red"} to the line's andon topic; the andon light, subscribed to that topic, turns red.

One message, every subscriber: none of them knows about the others, and you can add the next one without changing the press or the gateway.

MQTT concepts at a glance ​

The building blocks behind the flow above, as they work on ConnectMQ Cloud. Each has its own page with details and examples.

ConceptIn short
Design your topicsThe address of a message, split into levels by /, up to 8 levels. Your topics are private to your organization. Structure them with ISA-95 to get the topic tree, devices and Digital Twin automatically; Sparkplug B topics are converted to ISA-95 for you.
Wildcards+ matches one level, # everything below. acme/istanbul/# subscribes to a whole site with one filter.
Quality of Service (QoS)Delivery guarantee per message: 0 at most once, 1 at least once, 2 exactly once. All three on every plan.
Retained messagesThe broker keeps the last message of a topic and gives it to every new subscriber: ideal for status and configuration.
Last Will and TestamentA message the broker publishes for a client that disappears without disconnecting, so subscribers learn a device is offline.
Clean sessionsEvery connection starts a new session on ConnectMQ: subscribe again after each connect and use retained messages for state.
Shared subscriptions$share/<group>/<filter> spreads messages over several workers for load balancing (Basic and Scale).
Keep aliveHow long a client may stay silent before the connection is considered dead (up to 600 seconds); triggers the Last Will.
Credentials & authenticationTLS, a credential set with username and password, and a client ID based on the issued ID; ACL decides what each client may do.

Connection paths ​

FromHow it connectsGuide
ESP32, Arduino, sensorsMQTT over TLS 8883ESP32 / Arduino
PLCs, meters, relays, OPC UA serversConnectMQ Edge, then MQTT over TLS 8883Edge overview
Gateways, Node-RED, Home AssistantMQTT over TLS 8883Node-RED, Home Assistant
Back-end services and scriptsMQTT over TLS 8883Python, Node.js, C# / .NET, Go, Java
Mobile appsMQTT over TLS 8883 or WSS 8084Dart / Flutter, Swift, Kotlin
Browsers and web appsMQTT over secure WebSockets 8084Browser (WebSockets)
PeopleThe web console in a browserTour of the console

Security from end to end ​

  • Encrypted in transit. Clients connect over TLS (8883) or secure WebSockets (8084); the broker's certificate is checked against the system's trusted CAs. Ports 1883 and 8083 are not encrypted: use them only for quick tests on a trusted network or with the public test broker.
  • Outbound only. Devices, Edge and your applications open connections to ConnectMQ; you do not open inbound ports on the plant network.
  • Credentials per group. Give each device group or application its own credential set and revoke it independently.
  • Least privilege. ACL rules limit each credential set to the topics it needs to publish or read.
  • Isolated organizations. Topics, credentials and data of one organization are never visible to another.

Built for unreliable networks ​

  • Offline buffer: ConnectMQ Edge stores readings on disk during an outage and forwards them afterwards.
  • Reconnects: MQTT client libraries reconnect automatically; subscribe again after each reconnect as shown in the code samples.
  • Last Will: a gateway can register a Last Will such as …/gateway/status → offline, so subscribers learn that a line has gone silent instead of assuming everything is fine.
  • Retained status: publish a device's current state as a retained message, and every new subscriber gets it at once.
  • Platform status: the live status of the broker and the console is on status.connectmq.com.

Ports and endpoints ​

EndpointPortUsed by
mqtts://broker.connectmq.com8883Devices, Edge, services, mobile apps
wss://broker.connectmq.com:8084/mqtt8084Browsers and networks that block 8883
mqtt://broker.connectmq.com1883Quick tests and the public test broker; not encrypted
https://app.connectmq.com443Web console
Edge local OPC UA server48010SCADA, HMI and MES on site
Edge local MQTT broker1883Local clients and Sparkplug B gateways on site

Next steps ​

Fully managed MQTT broker for connected devices.