---
title: "Sparkplug B to MQTT JSON — ConnectMQ Edge Connector | ConnectMQ"
description: "Send Sparkplug B from Ignition, Node-RED and gateways to the cloud: nodes publish to ConnectMQ Edge, which forwards them; the cloud adds ISA-95 JSON topics."
url: "https://connectmq.com/connectmq-edge/sparkplug-b/"
language: "en"
---

ConnectMQ Edge · Sparkplug B

# Sparkplug B, ready-to-use JSON in the cloud

Sparkplug B works well on the plant floor, but its protobuf payloads are hard to use anywhere else. Point Ignition, Node-RED or your gateways at the local MQTT broker of ConnectMQ Edge: Edge forwards the messages securely and buffers them offline, and ConnectMQ Cloud publishes a JSON copy on an ISA-95 topic for dashboards, alerts and the Digital Twin.

-   Local MQTT broker · port 1883
-   Ignition, Node-RED, gateways
-   Protobuf & JSON

[Try it free](https://app.connectmq.com/signup) [See pricing](https://connectmq.com/pricing/)

No card required

-   Siemens S7 PLCs
-   OMRON PLCs
-   Modbus meters
-   IEC 104 RTUs
-   IEC 61850 IEDs
-   OPC UA servers

**ConnectMQ Edge**Windows service`ISA-95 · JSON``offline buffer`SCADA / HMI · OPC UA :48010 · MQTT :1883

**ConnectMQ Cloud**`broker.connectmq.com`Dashboards · Alerts · Digital Twin · API

## Why connect Sparkplug B to ConnectMQ

### No protobuf decoder to build

ConnectMQ Cloud decodes protobuf and JSON Sparkplug payloads and publishes readable ISA-95 JSON next to the original topics.

### One local broker for every node

Ignition, Node-RED and Sparkplug gateways publish to Edge on port 1883 — the nodes do not need internet access of their own.

### Buffered when the link drops

Edge keeps the messages on disk while offline and forwards them over MQTT/TLS when the connection is back.

## What it reads and does

-   Ignition MQTT Transmission, Node-RED and Sparkplug B gateways
-   Local MQTT broker on mqtt://<edge-pc>:1883
-   Protobuf and JSON payloads, decoded in ConnectMQ Cloud
-   DDATA / NDATA → telemetry, BIRTH → birth, DEATH → death, CMD → command
-   Group, edge node and device mapped to ISA-95 site, area, line and cell

What arrives in ConnectMQ Cloud`connectmq/plant1/packing/line1/filler1/telemetry`

```
{ "Temperature": 71.4, "Speed": 120, "Running": true, "timestamp": 1763049600000 }
```

## Up and running in three steps

1.  1
    
    ### Install ConnectMQ Edge
    
    Download Edge from your ConnectMQ account and sign in — the Windows service and desktop app come in one installer.
    
2.  2
    
    ### Add the Sparkplug B channel
    
    Pick the Sparkplug B template, enter the address of your device and the tags you need, and press Save and apply.
    
3.  3
    
    ### Use the data
    
    The tags appear in your ConnectMQ broker as ISA-95 topics, ready for dashboards, alerts and the Digital Twin.
    

## Where teams use it

### Ignition data in cloud dashboards

Show line metrics from Ignition to teams outside the plant on ConnectMQ dashboards, using the decoded JSON topics.

### Node online / offline alerts

Use the converted birth and death topics to raise an alert when an edge node or device goes offline.

### Several plants in one tree

Name Sparkplug groups by site and area so lines from several plants land in one ISA-95 topic tree, ready for the Digital Twin.

## Sparkplug B: frequently asked questions

How do I send Sparkplug B data from Ignition to a cloud MQTT broker?

Point Ignition MQTT Transmission (or any Sparkplug B node) to the local broker of ConnectMQ Edge at mqtt://<edge-pc>:1883 and add the wildcard rule spBv1.0/# for Local client messages on the Topics page. Edge forwards the messages to your ConnectMQ broker over MQTT/TLS and buffers them while offline.

Does ConnectMQ convert Sparkplug B protobuf to JSON?

Yes. ConnectMQ Cloud decodes protobuf and JSON Sparkplug payloads and publishes a JSON copy on an ISA-95 topic: DDATA / NDATA become …/telemetry, BIRTH …/birth, DEATH …/death and CMD …/command. The original spBv1.0/… topics stay available too.

Can I send NCMD / DCMD commands to local Sparkplug nodes?

No. Commands sent from the cloud (NCMD / DCMD, rebirth requests) are not delivered to local Sparkplug nodes. Commands published by local nodes do appear in the cloud under …/command.

Technical details: step-by-step setup and example configuration

### Set it up step by step

1.  1
    
    Make sure Windows Service Settings › Start with the service › Start the local MQTT broker is on.
    
2.  2
    
    Point your Sparkplug B edge nodes (Ignition MQTT Transmission, Node-RED, gateways) to mqtt://<edge-pc>:1883.
    
3.  3
    
    Name the Sparkplug group <site>\_<area> (for example plant1\_packing). ConnectMQ Cloud uses it for the ISA-95 site and area; the edge node becomes the line and the device the cell.
    
4.  4
    
    On the Topics page, under Wildcard rules, choose Local client messages, type spBv1.0/#, click Add rule and then Save and apply. Leave the topic prefix in Cloud Settings empty — the cloud only recognises topics that start with spBv1.0/.
    
5.  5
    
    In the ConnectMQ portal you find the original spBv1.0/… topics and the converted ISA-95 topics: DDATA / NDATA → …/telemetry, BIRTH → …/birth, DEATH → …/death, CMD → …/command (commands published by local nodes). Protobuf and JSON payloads are both decoded.
    

Example configuration

```
Sparkplug B node publishes to Edge (:1883)
  spBv1.0/plant1_packing/DDATA/line1/filler1      (protobuf)

ConnectMQ Cloud publishes the ISA-95 copy
  connectmq/plant1/packing/line1/filler1/telemetry
```

### Good to know

-   Edge passes Sparkplug B through to the cloud only; the decoding into ISA-95 JSON runs in ConnectMQ Cloud.
-   Commands sent from the cloud (NCMD / DCMD, rebirth requests) are not delivered to local Sparkplug nodes.
-   Keep the topic prefix in Cloud Settings empty, otherwise the topics no longer start with spBv1.0/ and are not converted.
-   Sparkplug devices that can reach the internet may also publish to your ConnectMQ broker directly.

## Other connectors

[**Siemens S7**S7-1200/1500, S7-300/400, S7-200 SMART and LOGO! over ISO-on-TCPLearn more](https://connectmq.com/connectmq-edge/siemens-s7/) [**Modbus TCP / RTU**Energy meters, drives and PLCs over Modbus TCP, UDP or RS-485 RTULearn more](https://connectmq.com/connectmq-edge/modbus/) [**OMRON FINS / NJ-NX**CJ/CP/CS memory areas over FINS and NJ/NX variables by nameLearn more](https://connectmq.com/connectmq-edge/omron/) [**OPC UA Client**Subscribe to any OPC UA server: S7-1500, Beckhoff, B&R, KEPServerEXLearn more](https://connectmq.com/connectmq-edge/opc-ua-client/) [**IEC 60870-5-104**RTUs and substation gateways as controlling station, port 2404Learn more](https://connectmq.com/connectmq-edge/iec-104/) [**IEC 61850 (MMS)**Protection relays, bay controllers and IEDs over MMS with SCL importLearn more](https://connectmq.com/connectmq-edge/iec-61850/) [**Local OPC UA server**Every tag Edge collects on one OPC UA endpoint for SCADA and MESLearn more](https://connectmq.com/connectmq-edge/opc-ua-server/)

[ConnectMQ Edge](https://connectmq.com/connectmq-edge/)

## Connect your first PLC this week

Create your ConnectMQ account, download ConnectMQ Edge from the portal and add your first connector in minutes.

[Get started](https://app.connectmq.com/signup) [See pricing](https://connectmq.com/pricing/)

## Articles

[All articles](https://connectmq.com/blog/)

Industrial IoT

### [Sparkplug B and the Unified Namespace: Structuring Industrial IoT Data on MQTT](https://connectmq.com/blog/mqtt-sparkplug-b-unified-namespace/)

Sparkplug B gives industrial MQTT a strict session and payload model, while a Unified Namespace gives your plant data a single, readable home. Here is how they fit together, with topic design tips and live examples.

August 26, 20269 min read

Managed MQTT Cloud

### [How to Choose an IoT MQTT Broker: 12 Criteria and the Questions to Ask Your Vendor](https://connectmq.com/blog/how-to-choose-an-iot-mqtt-broker/)

A practical 12-point checklist for choosing an IoT MQTT broker, a table of questions to ask every vendor, and a five-minute hands-on test you can run against broker.connectmq.com.

September 21, 20269 min read

MQTT Security

### [MQTT Security Best Practices: A 12-Point Checklist for IoT Teams](https://connectmq.com/blog/mqtt-security-best-practices/)

A hands-on MQTT security checklist covering TLS, credentials, client IDs, topic design, payload validation, rate limits and certificate checks, plus how ConnectMQ handles each point.

September 28, 202611 min read
