Skip to content
Back to skills

Logiccloud Connection Sparkplug

ASecurity

Use when a logiccloud runtime should publish or consume Sparkplug B 2.2 data - over the installation's cloud broker (SparkplugB22Cloud) or an own MQTT broker (SparkplugB22External) - topic namespaces with group, edge node and device IDs, owner and consumer roles, metrics and their mappings to Inputs/Outputs.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsgonode

Works with

  • cli

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add logiccloudag/agent-kit --skill logiccloud-connection-sparkplug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Logiccloud Connection Sparkplug?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Logiccloud Connection Sparkplug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/logiccloudag-logiccloud-connection-sparkplug/badge)](https://www.skillsdirectory.com/skills/logiccloudag-logiccloud-connection-sparkplug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: logiccloud-connection-sparkplug
description: Use when a logiccloud runtime should publish or consume Sparkplug B 2.2 data - over the installation's cloud broker (SparkplugB22Cloud) or an own MQTT broker (SparkplugB22External) - topic namespaces with group, edge node and device IDs, owner and consumer roles, metrics and their mappings to Inputs/Outputs.
---

# Sparkplug B connections

The commands and general rules are in the logiccloud-connections skill; this
adds what is specific to `SparkplugB22Cloud` and `SparkplugB22External`.
Test: supported for both.

## Connection

- Cloud (the installation's broker; host, port and credentials are
  generated): `{"name": "Sparkplug", "clientId": "<unique>", "reconnectPeriod": 1000, "clean": true}`.
- External: the same plus `hostname`, `port`, `protocol` (`mqtt` or
  `mqtts`), `username`, `password` (required), optional `certificateCa`,
  `certificateClient`, `certificateKey` (PEM contents) and
  `rejectUnauthorized` (keep true).
- `clientId` must be unique per connection and device; two clients with the
  same ID throw each other off the broker. A UUID is a good choice.
- `useAliasOnMetrics`: send metric aliases instead of names after the birth.

## Topic namespaces

Sub-object `SparkplugB22TopicNamespace`:
`{name, groupId, nodeId, deviceId, type, rebirthMetric}`. Topics are
`spBv1.0/<groupId>/<message type>/<nodeId>[/<deviceId>]`.

- `type: "Owner"`: this runtime is the edge node. It publishes NBIRTH/DBIRTH,
  NDATA/DDATA and NDEATH/DDEATH for the mapped `{OUT}` variables. With
  `deviceId` empty, metrics are node metrics.
- `type: "Consumer"`: subscribes to another edge node's messages and writes
  the metrics to `{IN}` variables. The variables must have exactly the names
  of the metrics; aliases and tag names are not supported for consumers.

## Metrics

`SparkplugB22Mappings` per namespace (target: namespace ID):

    [{"variableName": "Speed", "tagName": "Line1/Speed", "dataType": "Float"}]

`tagName` is the metric name (empty: the variable name). `dataType`:
`Int8`..`Int64`, `UInt8`..`UInt64`, `Float`, `Double`, `Boolean`, `String`
(REAL = Float, LREAL = Double, INT = Int16, DINT = Int32).

## Gotchas

- With raw GraphQL, the cloud delete mutation is spelled
  `deleteSparklugB22CloudConnection` (sic); `lc` and the tools handle it.
- A primary host application (SCADA) that misses a birth can request a
  rebirth through the `rebirthMetric`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.