Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
22.5k Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Telemetry

Publish time-series data to ThingsBoard by sending a message to the telemetry topic. ThingsBoard stores each key-value pair as a time-series data point and makes it available in dashboards, rule chains, and the REST API. For connection parameters and credential types, see Getting Connected.

Format Topic
Short v2/t
Standard v1/devices/me/telemetry

ThingsBoard records the server receive time as the timestamp.

{"temperature": 22.5, "humidity": 61}

Use this when the device has a reliable clock and you want the exact measurement time stored. ts is a Unix timestamp in milliseconds.

{"ts": 1451649600512, "values": {"temperature": 22.5, "humidity": 61}}

Array of objects with client-side timestamp

Section titled “Array of objects with client-side timestamp”

Send multiple readings at different timestamps in a single publish.

[
{"ts": 1451649600000, "values": {"temperature": 22.5, "humidity": 61}},
{"ts": 1451649601000, "values": {"temperature": 22.7, "humidity": 60}}
]
Type Example
String "value1"
Boolean true
Double 42.0
Long 73
JSON object {"nested": {"key": "value"}}
JSON array [1, 2, 3]
Terminal window
mosquitto_pub -d -q 1 -h "mqtt.thingsboard.cloud" -p 1883 -t "v2/t" -u "$ACCESS_TOKEN" -m '{"temperature": 22.5, "humidity": 61}'