Skip to content
GitHub

Unified Namespace Software on Sparkplug B

This content is not available in your language yet.

A unified namespace is one place, usually an MQTT broker, where every machine publishes its data under a consistent name, so anything that needs a value reads it from there and not from the device. HotLoop gives you each role from parts that already ship.

Role HotLoop part What it does
Edge node Edge Relay Polls the machines and publishes them as Sparkplug B, with a disk queue for outages.
Hub The embedded broker, or your own Carries the namespace.
Primary host Gateway Tracks births and deaths, keeps the history, raises alarms, and writes readings to your database.

Unified namespace software, fed by 18 native drivers

Section titled “Unified namespace software, fed by 18 native drivers”

Stop leaving data in separate streams. HotLoop writes them into one namespace you own. Try HotLoop free.

MQTT Sparkplug B primary host, done to the spec

Section titled “MQTT Sparkplug B primary host, done to the spec”

HotLoop does the things the specification asks for and most integrations skip. It publishes a retained STATE birth with a matching will, so edge nodes see the host drop instead of guessing from a timeout. It tracks every node’s sequence and asks a node to re-announce itself when it skips or after the host reconnects. It matches each death to the right birth, so a stale death certificate from a previous session leaves the current session alive.

Start free and connect your first node.

Unified namespace software from parts that ship today

Section titled “Unified namespace software from parts that ship today”

A unified namespace is one place where every machine’s data lands with a name and a state. HotLoop gives you the pieces: Edge Relays that publish from the machine, an MQTT broker as the hub, and a Gateway that acts as the Sparkplug primary host with the history and the alarms. Run the embedded broker, or point everything at Mosquitto, EMQX or any other broker. Install with Helm or Podman Quadlet.

Build your unified namespace, step by step.

For one plant and a handful of relays, the embedded broker is enough, on by default on port 1883. For several independent Sparkplug host applications, very high fan-out, bridging between sites, or clustering, run Mosquitto, EMQX, or another dedicated broker and point the Gateway and relays at it. The broker page draws the line.

Install the relay, set edgePublish.broker, a edgePublish.group for the plant, and a stable edgePublish.node name per machine. The group and node names become the first part of every topic, so choose them the way you want the namespace to read.

Each relay polls with the Gateway’s own drivers, OPC UA, Modbus, EtherNet/IP, S7comm, MTConnect, and HTTP among them, and forwards as a Sparkplug B edge node. See Modbus to MQTT and OPC UA to MQTT for the device files.

Add the broker as an MQTT device and read the namespace with spb: addresses.

spb:Plant|press-line-3||Node/Uptime a node-level metric
spb:Plant|press-line-3|press-01|Zone1_Temp a device metric

As a primary host the driver publishes a retained STATE birth with a matching will, so edge nodes can see the host drop and not infer it from a timeout. It tracks each node’s rolling sequence number and asks a node to rebirth when one goes missing. The protocols page has the details.

A relay queues readings to disk and replays them in order when the broker returns, each flagged is_historical, so the namespace ends up with the gap backfilled. The queue is capped at 64 MiB by default.

A device file pushed from the Gateway applies live on a relay, with no restart, so adding a device is a change at the Gateway and not a visit to the box. Fleet management covers registering relays and pushing files.

Sparkplug B puts a structure on MQTT topics and payloads. Births announce what a node has, deaths announce that it went away, and sequence numbers let a host notice a gap and ask for a rebirth. HotLoop implements both sides.

Does HotLoop work as a Sparkplug B primary host?

Section titled “Does HotLoop work as a Sparkplug B primary host?”

Yes. HotLoop acts as a full primary host application. It publishes a retained STATE birth with a matching will, tracks every node’s sequence, requests rebirths and matches each death to the right birth.

HotLoop gives you the parts of a unified namespace: the Edge Relay as the Sparkplug B edge node, an MQTT broker as the hub, and the Gateway as the primary host that keeps the history and the alarms.