Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

In this section: Build
Start
Reference code
Tools
API reference
Public services
Agents
Bindings and crosswalks

Observatory Protocol Field Topic Contract (MQTT 5 and Sparkplug B)

Source schemas/asyncapi/obsp-field.asyncapi.yaml

On this page
  1. Servers
  2. Channels
  3. Operations

OBSP 0.1 field-side topic contract (specification sections 5.5 and 6). A node publishes observations, its state and correction notices to the site cell's local MQTT 5 broker under obsp/v0/...; device telemetry that arrives as Sparkplug B is read on the standard spBv1.0 namespace and mapped to ObservationRecord by the node. Topic segments that carry a UNI use the UNI without '/' (MQTT level separator); '+' and '#' never occur in a UNI. Every OBSP publication is at least once (QoS 1 or 2) and carries the record's idempotency key, so the receiver absorbs duplicates. This is contract authority only. It does not assert a deployed broker, a producer or a consumer, and it names no hosted endpoint: the broker host is set per site by the grid operator.

FieldValue
Documentschemas/asyncapi/obsp-field.asyncapi.yaml
FormatAsyncAPI 3.0.0
Version3.1.0

Servers

ServerHostProtocolVersionDescription
siteCellBroker{brokerHost}:8883secure-mqtt5The site cell's local MQTT 5 broker over TLS 1.3 with mutual authentication. No default host.

Channels

ChannelAddressMessages
observationobsp/v0/{siteUni}/{nodeUni}/obs/{streamId}ObservationRecord
nodeStateobsp/v0/{siteUni}/{nodeUni}/stateObservedStateReceipt
correctionobsp/v0/{siteUni}/correctionCorrectionNotice
sparkplugNodeBirthspBv1.0/{groupId}/NBIRTH/{edgeNodeId}SparkplugPayload
sparkplugNodeDeathspBv1.0/{groupId}/NDEATH/{edgeNodeId}SparkplugPayload
sparkplugDeviceBirthspBv1.0/{groupId}/DBIRTH/{edgeNodeId}/{deviceId}SparkplugPayload
sparkplugDeviceDataspBv1.0/{groupId}/DDATA/{edgeNodeId}/{deviceId}SparkplugPayload

Operations

OperationActionSummary
publishObservationsendNode publishes an observation from its durable outbox.
receiveObservationreceiveSite cell ingests observations; duplicates by idempotency key are absorbed, gaps are recorded.
publishNodeStatesend
publishCorrectionsend
receiveCorrectionreceive
receiveSparkplugNodeBirthreceive
receiveSparkplugNodeDeathreceive
receiveSparkplugDeviceBirthreceive
receiveSparkplugDeviceDatareceiveNode reads device telemetry and maps each metric to an ObservationRecord with its sensor passport, time quality and quality flags.