Publish a Sparkplug B host application STATE message so edge nodes can detect when the SCADA/host application goes offline

domain: sparkplug.eclipse.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Have the host application publish a retained message to spBv1.0/STATE/<primary_host_id> on connect, with QoS 1
  2. Set the payload to JSON of the form {"online": true, "timestamp": <epoch-millis>}
  3. Use the MQTT Will message mechanism so the broker automatically publishes {"online": false, "timestamp": ...} to the same topic if the host disconnects ungracefully
  4. Have edge nodes subscribe to the host's STATE topic to detect host availability before sending NBIRTH/DBIRTH messages
  5. On graceful shutdown, have the host explicitly publish the offline payload before disconnecting

Known gotchas

Related routes

Implement Sparkplug B SCADA Host Application state management and rebirth requests
sparkplug · 6 steps · unrated
Publish Sparkplug B NBIRTH and NDATA messages from an Edge Node with correct QoS levels
sparkplug · 6 steps · unrated
Structure Sparkplug B MQTT topics and publish birth/death certificate messages for edge nodes and devices
sparkplug.eclipse.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans