SpecsModelExplore
Overview
Actors
External Systems
IoT Platform
Edge
Edge Agent
Driver LoaderLocal BufferMQTT PublisherOTA Updater
Edge Rule Runtime
Ingestion
Stream Processing
Device Management
User-Facing Apps
Platform
MQTT Publisher
Publish loop
Connection handling
Stream
Reconnect
Notes
SpecsModelExplore
MQTT Publisher
OverviewGuideLinks and Communications

MQTT Publisher

The MQTT Publisher is the gateway’s uplink. It reads committed batches out of the Local Buffer, publishes them to the cloud MQTT broker over TLS, and only advances the sync cursor once the broker has acknowledged delivery.

QoS 1, cursor-driven

Messages are published at QoS 1 (at-least-once). The publisher treats the broker PUBACK as the signal to advance SYNC_CURSOR.acked_seq — the buffer is never pruned ahead of a confirmed delivery.

Publish loop

Connection handling

Authenticate

The TLS handshake is mutual: the broker verifies the gateway’s client certificate and the gateway pins the broker’s CA. An untrusted peer never gets a session.

Stream

While connected, batches flow continuously; the publisher keeps the in-flight window small to bound memory and reordering.

Reconnect

On a dropped link the publisher backs off and retries. Because the buffer holds everything, no telemetry is lost — the backlog simply drains once the link is back.

Notes

  • Telemetry is serialised as Protobuf to keep payloads compact over metered links.
  • Topics are namespaced per device so the cloud can fan out by tenant and type.