Sensorclouds
MQTT Connectivity

MQTT Topics

Complete reference for device topics, message formats, and permissions

Topic structure

Every device topic follows one pattern:

tenant/{tenantId}/app/{applicationId}/device/{deviceToken}/{type}
SegmentValueWhere to find it
{tenantId}Your workspace's IDDevice → Overview → MQTT Topics
{applicationId}The application's Application IDUnder the application's name in the Applications list, or in the device's topics
{deviceToken}The device's token, for example dev_9f2c41a7…Device → Settings
{type}data, status, cmd, or ackLabelled Telemetry, Status, Commands, and Command ACK on the device's Overview tab

Don't assemble topics by hand. Copy them from the device's Overview tab.

The anatomy of an MQTT topic, breaking down each segment of the topic path

Permissions

TopicDevice may
…/dataPublish
…/statusPublish
…/ackPublish
…/cmdSubscribe

A device can't publish or subscribe to any other topic, including other devices' topics. Wildcard subscriptions aren't allowed.

/data: telemetry

Direction: device → platform · QoS: 1 recommended

FormatExampleDecoded by
JSON{"temperature": 21.5, "battery": 3.7}The JSON decoder
BinaryRaw bytesYour decoder
Hex string0x09D53CConverted to bytes, then your decoder

Optional keys in the decoded result: timestamp (the reading time) and backfill: true (buffered data). See Sending Telemetry Data.

Maximum message size: 256 KB.

/status: online / offline

Direction: device → platform · QoS: 1 · Retain: true

{"status": "online"}
{"status": "offline"}

Publish online after connecting, and register offline as the Last Will.

/cmd: commands

Direction: platform → device · Subscribe with: QoS 1

{
  "commandId": "6f1c2e9a-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
  "command": "setInterval",
  "parameters": { "seconds": 30 },
  "timestamp": "2026-09-18T07:30:00.000Z"
}
KeyMeaning
commandIdUnique ID. Send it back in the acknowledgment
commandThe command name. ota:update and ota:rollback are reserved for firmware updates
parametersA JSON object (may be empty)
timestampWhen the platform sent it

/ack: acknowledgments

Direction: device → platform · QoS: 1

{
  "commandId": "6f1c2e9a-3b4d-4e5f-8a9b-0c1d2e3f4a5b",
  "status": "ok",
  "message": "Interval set to 30 s"
}
KeyMeaning
commandId(required) The ID from the command
status"ok" for success. Any other value marks the command FAILED
successAlternative to status: true for success
message / errorOptional text shown in the command history

Use exactly "status": "ok" (or "success": true). Values like "success" or "done" are treated as failure.

For firmware updates, the ACK format is different. See Device OTA Protocol.

Next Steps

On this page