Sending Telemetry Data
How to publish sensor data from your devices to Sensorclouds
Devices send telemetry by publishing MQTT messages to their data topic.
tenant/{tenantId}/app/{applicationId}/device/{deviceToken}/dataPayload Formats
JSON (Simplest)
Send a JSON object with key-value pairs:
{"temperature": 25.3, "humidity": 60, "battery": 3.7}This works with the NONE codec type — no decoder needed.
Hex-Encoded String
Send a hexadecimal ASCII string:
"09D53C"The platform auto-detects hex strings and converts them to bytes before passing to the payload decoder.
Raw Bytes
Send raw binary data that gets processed by the device profile's payload decoder.
Rate Limiting
Each device is limited to 60 messages per minute. Messages exceeding this limit are dropped.
If your device needs to send data more frequently, consider batching multiple readings into a single message.
Timestamp Modes
The device profile's timestamp source setting controls how timestamps are assigned:
| Mode | Behavior |
|---|---|
| PLATFORM (default) | Server time when the message is received |
| DEVICE | Timestamp from the device's payload (if provided) |
Use DEVICE mode when your devices include accurate timestamps and you need to account for network delays.