Sending Telemetry Data
Payload formats, timestamps, buffered data, and good publishing habits
Devices send telemetry by publishing to their data topic:
tenant/{tenantId}/app/{applicationId}/device/{deviceToken}/dataPayload formats
| Format | Example | Profile needs |
|---|---|---|
| JSON (simplest) | {"temperature": 21.5, "humidity": 48, "battery": 3.7} | CUSTOM + JSON decoder |
| Binary | 3 bytes 09 D5 3C | CUSTOM + your decoder |
| Hex string | 0x09D53C | CUSTOM + your decoder (converted to bytes first) |
A profile set to codec NONE shows the message in Live Data but stores no fields. Use CUSTOM for any data you want to keep.
Good JSON habits
- Flat key/value pairs:
{"temperature": 21.5}, not{"sensors": {"t": 21.5}}. - Numbers as numbers:
21.5, not"21.5". Charts and alarms need numbers. - Stable names:
temperatureeverywhere. Renaming a key creates a new field. - Units in the name or the widget:
temperature_c, or set the unit on the widget.
Timestamps and buffered data
By default, each reading is stamped with the time Sensorclouds received it. You can override this
by including a timestamp key:
{"temperature": 21.5, "timestamp": 1758180600}timestamp format | Example |
|---|---|
| Unix seconds | 1758180600 |
| Unix milliseconds | 1758180600000 |
| ISO 8601 | "2026-09-18T07:30:00Z" |
How it's used:
| Situation | Reading is stored at |
|---|---|
No timestamp | The time received |
timestamp more than 30 seconds old, or "backfill": true | The timestamp (treated as backfilled data) |
Recent timestamp, profile Timestamp Source = DEVICE | The timestamp |
Recent timestamp, profile Timestamp Source = PLATFORM | The time received |
timestamp and backfill aren't stored as fields.
A wrong timestamp silently moves data into the past. A clock that isn't set
(for example 1970) or a local time sent without a zone are common causes. Only send
timestamp from a clock you trust.
Sending readings recorded while offline
If your device buffers readings while it has no connection, send each one with its original
timestamp once it reconnects. They're stored at the right time and appear in Live Data as
Uplink backfilled.
{"temperature": 20.9, "timestamp": 1758177000, "backfill": true}Publishing habits
| Do | Why |
|---|---|
| Use QoS 1 | Readings are confirmed by the broker |
| Report at a steady interval | Status and charts work best with regular data |
| Combine related values in one message | Fewer messages, and no rate limiting |
| Keep messages small | The limit is 256 KB, and smaller is faster |