In short: Sparkplug B, often called MQTT Sparkplug, is the current variant of Sparkplug, an open specification that defines how industrial devices and applications exchange data over MQTT. It adds three things MQTT leaves open: a fixed topic structure, a compact binary payload based on Google Protocol Buffers and session state management with birth and death certificates, so every consumer knows whether a value is current. Sparkplug is maintained by the Eclipse Foundation, and version 3.0 has been an international standard (ISO/IEC 20237) since 2023. Sparkplug B plays to its strengths where Sparkplug-aware applications such as SCADA systems consume the data, while a Unified Namespace read by many different systems is often better served by open JSON payloads.
Jump to: How it works · Sparkplug B vs. MQTT · Sparkplug B vs. UNS · Decision guide · Challenges · UNS checklist · Examples · Security · Implementation · FAQ
Sparkplug grew out of SCADA practice. Cirrus Link published version 1.0 of the specification in May 2016 with a clear goal: make MQTT usable for industrial control systems in which the state of every device has to be known at all times. In 2019, Sparkplug became a project of the Eclipse Foundation. Version 3.0, released in November 2022, was the first version developed under the Eclipse Foundation Specification Process. It clarified ambiguities from version 2.2, added explicit normative statements and introduced a Technology Compatibility Kit (TCK) that implementations can be tested against.
In 2023, Sparkplug 3.0 was published as the international standard ISO/IEC 20237. The Eclipse Foundation remains the steward of the specification, and version 4.0 is currently in development.
The naming regularly causes confusion, because letters and version numbers refer to different things.
| Term | Meaning |
|---|---|
| Sparkplug | The specification as a whole: topic namespace, payload definition and state management on top of MQTT |
| Sparkplug A | The first payload definition, based on the Eclipse Kura Protobuf format. It is deprecated and no longer part of the specification. |
| Sparkplug B | The current payload definition with richer metrics: data types, properties, templates for complex data types and datasets for tables |
| spBv1.0 | The first element of every Sparkplug B topic. It identifies the namespace and the generation of the payload format and is independent of the specification version. |
| 3.0 | The current version of the specification, published as ISO/IEC 20237:2023 |
MQTT defines how messages travel between clients and a broker. It deliberately says nothing about how topics are named, what a payload contains or whether the device behind a value is still connected. In a project with a single integrator, a team can agree on its own conventions. In a plant with equipment from a dozen vendors and several integrators, every party brings its own, and each integration into SCADA or MES has to learn them again.
Sparkplug answers all three questions with one set of rules. A host application can then work with edge devices from different vendors without project-specific configuration for each of them, which is why the Eclipse Foundation describes Sparkplug as the basis for a plug-and-play Industrial IoT.
Sparkplug defines four kinds of participants and the rules between them. The requirements for the broker in the middle are deliberately minimal, while edge nodes and host applications follow precise rules for topics, payloads and state.
Every Sparkplug B message uses the same topic structure. The device_id element only appears on device-level messages:
spBv1.0/<group_id>/<message_type>/<edge_node_id>[/<device_id>]
spBv1.0/plant-hamburg/DDATA/press-line-01/press-04
The group_id groups edge nodes logically, for example by site or production line. The combination of group_id and edge_node_id has to be unique across the entire infrastructure. Host applications announce their availability on a separate topic outside this structure, spBv1.0/STATE/<host_id>.
| Message type | Sent by | Purpose |
|---|---|---|
| NBIRTH | Edge node | Birth certificate of the edge node with every metric it will report, including data types and aliases |
| NDEATH | Edge node or MQTT server | Death certificate of the edge node. It is registered as the MQTT Last Will, so the server publishes it if the connection drops. |
| DBIRTH | Edge node | Birth certificate of a device behind the edge node |
| DDEATH | Edge node | Death certificate of a device that is no longer reachable |
| NDATA | Edge node | Metrics of the edge node that have changed |
| DDATA | Edge node | Metrics of a device that have changed |
| NCMD | Host application | Command to the edge node, for example a write or a rebirth request |
| DCMD | Host application | Command to a device, for example a new setpoint |
| STATE | Host application | Online or offline state of a host application, as a retained JSON message |
When an edge node connects, it registers its NDEATH message as MQTT Last Will with QoS 1. It then publishes its NBIRTH and one DBIRTH per device. These birth certificates list every metric with name, data type and current value, so a host application learns the complete data model of the node without any manual configuration. If the connection drops unexpectedly, the MQTT server publishes the NDEATH on behalf of the edge node, and every host application marks the metrics of that node as stale.
Two counters keep this reliable. The bdSeq number links each death certificate to the birth certificate it belongs to, so a host can tell an outdated death message from a current one. The seq number runs from 0 to 255 across all messages of an edge node and reveals missing messages. If a host notices a gap or connects late, it sends a rebirth request: it writes the value true to the metric Node Control/Rebirth through an NCMD, and the edge node publishes its birth certificates again.
Sparkplug B encodes its payloads with Google Protocol Buffers, a compact binary format. The only exception is the STATE message, which is plain JSON. Each metric carries a name, a timestamp, a data type and a value, and can add properties such as an engineering unit. Templates describe complex data types, for example a motor with all its parameters, and datasets carry tables.
To keep messages small, a metric can be given a numeric alias in its birth certificate. NDATA, DDATA, NCMD and DCMD messages then carry only the alias. The specification also prescribes report by exception: edge nodes publish a metric when its value changes and should not publish data on a fixed cycle. Data and command messages are sent with QoS 0, and gaps are closed through the sequence numbers and rebirth requests described above. Together, these rules make Sparkplug a lean form of event-driven architecture.
Sparkplug defines the clients and leaves the broker largely unchanged. Any MQTT broker that fully supports MQTT 3.1.1 or 5.0 with QoS 0 and 1, retained messages and Last Will messages meets the requirements of a Sparkplug infrastructure. The specification also describes an optional Sparkplug Aware MQTT Server. It stores the latest NBIRTH and DBIRTH messages and offers them as retained messages under $sparkplug/certificates/..., so a host that connects later receives the birth certificates without a rebirth request.
Because the session state lives on the broker that the clients are connected to, all participants in the birth and death handshake have to connect to the same MQTT server. Copies forwarded to other brokers can be used for monitoring, but they do not carry the session state.
Every Sparkplug message is a regular MQTT publish, and any compliant broker can route it. The difference lies in what publishers and subscribers agree on.
| Plain MQTT | Sparkplug B | |
|---|---|---|
| Topic structure | Free, defined per project | Fixed: spBv1.0/group/message type/edge node/device |
| Payload | Free: JSON, plain values or binary formats | Protobuf with typed metrics, timestamps and aliases |
| Data types and metadata | Only if the project defines a schema | Part of the specification, declared in the birth certificate |
| Device state | Last Will and retained messages, used by convention | Mandatory birth and death certificates with sequence numbers |
| Discovery | Consumers need documentation of topics and payloads | Host applications learn all metrics from the birth certificates |
| Delivery of data | QoS 0, 1 or 2, chosen per message | QoS 0 for data and commands, gaps closed by rebirth |
| Readability | JSON is readable in any MQTT client | Binary, a Sparkplug decoder is needed |
| Interoperability | Within the project’s own conventions | Between all implementations that follow the specification, testable with the TCK |
Plain MQTT is often enough when the consumers are applications the team builds or configures itself. A documented JSON payload with value, unit, timestamp and quality, combined with Last Will messages for the online state, covers much of what Sparkplug offers and stays readable for every client. Sparkplug pays off when devices from many vendors have to plug into a host application without project-specific configuration.
Sparkplug B and the Unified Namespace often appear in the same sentence, yet they answer different questions. Sparkplug B is a specification for how edge nodes and host applications exchange data. A Unified Namespace is an architectural principle: one central place where the current state of the whole company is available in a structure that reflects the business.
| Sparkplug B | JSON-based UNS | |
|---|---|---|
| Structure follows | Edge nodes and devices (group, edge node, device) | The company, usually ISA-95 (enterprise, site, area, line, machine) |
| Hierarchy depth | Fixed at group, edge node and device | As many levels as the data model needs |
| Payload | Binary Protobuf, several metrics per message | JSON, usually one value with its context per topic |
| Typical consumers | Sparkplug-aware host applications such as SCADA | Any system: MES, ERP, analytics, cloud, AI and dashboards |
| State handling | Built in through birth and death certificates | Defined by convention, for example status topics and Last Will |
| Rules set by | The specification | The company: naming rules, payload schema and permissions |
| Readability | Requires a decoder | Readable in any MQTT client |
The decisive difference is who the data is meant for. Sparkplug is optimized for host applications that know the specification. A UNS is built for consumers that nobody knows yet: the next dashboard, a data lake or an AI model. In Sparkplug, spBv1.0/plant-hamburg/DDATA/press-line-01/press-04 carries a bundle of binary metrics. In a UNS, the same temperature sits at acme/hamburg/press-shop/line-01/press-04/temperature as readable JSON, and every subscriber finds it through the structure of the plant.
In practice, two patterns are found:
The second pattern keeps naming, payload schema and permissions under the control of the company, which matters most once several plants share one namespace. Some edge platforms can also publish plain JSON next to or in place of Sparkplug B, which removes the decoding step altogether.
There is no answer that fits every plant. The following criteria help to decide where Sparkplug B is the better choice and where open JSON payloads in a Unified Namespace fit better.
| Criterion | Points to Sparkplug B | Points to a JSON UNS |
|---|---|---|
| Consumers | Mainly Sparkplug-aware SCADA or HMI systems | Many different systems, including MES, cloud, analytics and AI |
| Devices | Many edge devices from different vendors with native Sparkplug support | Mixed protocols that are normalized in a connectivity layer anyway |
| Structure | A technical grouping by edge node and device is sufficient | The namespace should mirror plants, lines and machines |
| Networks | Narrow or expensive links where compact payloads matter | Plant networks with enough bandwidth for readable payloads |
| Operations | The team works with Sparkplug tools and decoders | The team debugs with standard MQTT clients and needs readable data |
| Governance | The rules of the specification are sufficient | The company defines naming, schema and access rules itself |
Many architectures end up using both: Sparkplug B where an existing SCADA world depends on it, and a JSON-based UNS as the shared layer for everything else. What matters is to decide per consumer and to convert the data once, at a defined place in the architecture, so that individual applications never need a decoder of their own.
Most problems with Sparkplug B appear where a Sparkplug infrastructure meets systems and networks that were designed without it in mind.
| Challenge | Why it matters | Solution |
|---|---|---|
| Binary payloads | Generic MQTT clients, rule engines and dashboards only see raw bytes | A central decoding step that publishes the metrics as JSON for all consumers that do not speak Sparkplug |
| Bridging between brokers | The birth and death handshake, retained STATE messages and bdSeq numbers live on the broker the clients are connected to. A bridge forwards the messages, while the session state stays on the original broker. | Connect all participants of the handshake directly to the same broker and use bridged copies for monitoring only |
| Flat technical namespace | Group, edge node and device do not map site, area, line and machine | Use group IDs consistently, for example per site, and model the plant hierarchy in a UNS |
| Mixed specification versions | Since version 3.0, host applications publish STATE on spBv1.0/STATE/host_id as JSON. Clients based on 2.2 or earlier use STATE/host_id with text payloads. | Take stock of the specification version of every client and allow both topics during a migration |
| QoS 0 for data | Over unstable wide-area links, data messages can be lost between rebirths | Keep Sparkplug traffic on the local network, let edge nodes buffer while the primary host is offline and forward selected data to remote sites |
| Spoofed state | A client with write access to the whole namespace can publish data or death certificates for other nodes | Permissions per edge node that are restricted to its own topic subtree |

The payload format is one of many decisions on the way to a Unified Namespace. Twelve questions across four areas show where your factory stands today, from data access and context to integration and governance, and what to clarify before you decide.
You are currently viewing a placeholder content from HubSpot. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationThis is the classic use case. Gateways, controllers and edge devices with native Sparkplug support publish into one broker, and the SCADA system learns their tags from the birth certificates. A new device appears in the host application with its full data model, without anyone mapping its tags by hand.
Pipelines, utilities and distributed plants often connect over cellular or satellite links. Report by exception, metric aliases and compact Protobuf payloads keep the traffic low, and death certificates show a lost connection as soon as the broker detects it, so operators know which values they can still trust.
Many plants already run Sparkplug between edge and SCADA. When MES integration, analytics or cloud applications need the same data, the existing Sparkplug infrastructure keeps running. Its metrics are decoded once and made available in the Unified Namespace, so the SCADA side does not change.
Each plant uses Sparkplug where edge devices and SCADA support it, and publishes harmonized JSON topics into a plant and enterprise UNS. Cross-site applications such as OEE comparisons subscribe to the same topic structure in every plant, regardless of which payload format the edge uses.
You can find more scenarios in our use cases.
Sparkplug defines structure and state and relies on MQTT and the broker for security. Because commands can write values to machines, the permission concept deserves the same attention as the topic namespace. A production-ready Sparkplug infrastructure needs:
Governance goes beyond permissions. Group IDs and edge node IDs are part of every topic, so the naming rules for them belong in the same governance as the rest of the namespace.
How to design the Unified Namespace that the Sparkplug data flows into is discussed by experts from Cybus and MaibornWolff in the panel Define Your Unified Namespace.
Cybus Connectware can run as the central MQTT broker of a Sparkplug B infrastructure. Edge nodes from different vendors and any number of host applications connect to the same instance, and Cybus Connectware provides the users, permissions and routing for the Sparkplug namespace. The Sparkplug B Integration guide in the documentation follows the Sparkplug 3.0 specification.
Cybus Connectware routes Sparkplug B messages like any other MQTT message and enforces permissions on their topics. Rule Engine, mappings and Data Explorer work with the Protobuf payloads only after a decoding step. Consumers that need the metric values are either Sparkplug-aware themselves, for example a SCADA system, or receive the metrics as JSON from such a decoding step.
For a Unified Namespace that many systems read and that the company governs itself, Cybus recommends JSON payloads in a topic tree based on ISA-95. Sparkplug B remains the right choice where Sparkplug-aware host applications consume the data, and Cybus Connectware carries both formats on the same broker.
You can find all features and how to get started on the product page.
trusted by
Sparkplug A used the Eclipse Kura Protobuf definition, which proved too limited for the metadata industrial payloads need. Sparkplug B added richer metrics with data types, properties, templates and datasets. Sparkplug A is deprecated, and current implementations use Sparkplug B.
No. Any broker that fully supports MQTT 3.1.1 or 5.0 with QoS 0 and 1, retained messages and Last Will messages meets the requirements. A Sparkplug Aware broker additionally stores birth certificates for hosts that connect later, but this is optional.
That depends on who consumes the data. If Sparkplug-aware SCADA systems are the main consumers, Sparkplug B fits well. If many different systems read the data and the namespace should mirror plants and lines, a JSON-based Unified Namespace is the better fit. Many architectures use both.
Yes. A common pattern keeps Sparkplug B between edge nodes and SCADA and adds a decoding step that publishes the metrics as JSON into a UNS topic tree based on ISA-95.
Protobuf is a compact binary format with defined data types. Together with metric aliases, it keeps messages small on narrow links. The trade-off is readability: without a decoder, the payloads cannot be read. Only the STATE message of host applications is JSON.
Sparkplug 3.0 works with MQTT 3.1.1 and MQTT 5.0 clients and brokers.
An NBIRTH or DBIRTH message that an edge node publishes when it connects. It lists every metric with name, data type and current value, so host applications learn the complete data model. A death certificate (NDEATH or DDEATH) signals that the node or device is offline.
The specification prescribes QoS 0 for data and command messages. Sequence numbers reveal lost messages, and a rebirth request restores a complete picture. Only the NDEATH registered as Last Will and the STATE messages of host applications use QoS 1.
Yes. Sparkplug 3.0 was published in 2023 as the international standard ISO/IEC 20237. The Eclipse Foundation remains the steward of the specification.
The current version is Sparkplug 3.0, released in November 2022. Version 4.0 is in development at the Eclipse Foundation.
You need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Turnstile. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Hubspot Embedded Content. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from HubSpot. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Hubspot Meetings. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from reCAPTCHA. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information