Sensorclouds
Telemetry

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}/data

Payload formats

FormatExampleProfile needs
JSON (simplest){"temperature": 21.5, "humidity": 48, "battery": 3.7}CUSTOM + JSON decoder
Binary3 bytes 09 D5 3CCUSTOM + your decoder
Hex string0x09D53CCUSTOM + 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: temperature everywhere. 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 formatExample
Unix seconds1758180600
Unix milliseconds1758180600000
ISO 8601"2026-09-18T07:30:00Z"

How it's used:

SituationReading is stored at
No timestampThe time received
timestamp more than 30 seconds old, or "backfill": trueThe timestamp (treated as backfilled data)
Recent timestamp, profile Timestamp Source = DEVICEThe timestamp
Recent timestamp, profile Timestamp Source = PLATFORMThe 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

DoWhy
Use QoS 1Readings are confirmed by the broker
Report at a steady intervalStatus and charts work best with regular data
Combine related values in one messageFewer messages, and no rate limiting
Keep messages smallThe limit is 256 KB, and smaller is faster

Next Steps

On this page