Skip to content

Telemetry and attributes ​

Telemetry ​

Telemetry is a reading: temperature, voltage, a counter, a text value. When a device sends it, the platform stores it and updates the latest value. Dashboards, alarms, and rule chains then see that stored reading. A text value such as "hot" is stored and shown. A chart draws numbers. A key that is not a number stays as text on the device page and on a chart card.

A post the platform has accepted returns HTTP 201 with {"success":true,"stored":true}. A post the plan does not store returns HTTP 429 with success: false and stored: false. Plans are capped by sustained DP/s (1-hour rolling average) and related ingest limits — not by a published minimum send interval. Devices may send as often as they like while the rolling average stays inside the plan. Sustained overage is refused and not stored. See Pricing.

HTTP and MQTT bodies may be flat key/values (e.g. {"temp":28.4,"volt":230.1}), an envelope {"telemetry":{"temp":28.4},"ts":1710000000000}, or a wrapper {"payload":{"temp":28.4}}. The platform unwraps an object payload so nested keys become readings (alarm rules and charts see temp, not a single payload key). A non-object payload stays one key.

A batch is POST /api/v1/{deviceToken}/telemetry/batch with body {"items":[{"ts":1710000000000,"telemetry":{"pressure":150}}]}. accepted is the number of items the platform took, including items answered as stored. success is true when every item was accepted. Each refused item has success: false. A field named ts on a batch item is the time of that reading. It is not stored as a key. A top-level numeric ts on one reading, including MQTT, is the same time. When that time is present and valid, the platform stores the reading at that time. When it is absent, the platform uses the server time. A ts that is not a time stays a key. Two past rows a minute apart are stored. A later post for the same device, key, and time replaces that stored row. One HTTP post with two keys counts as two data points toward DP/s.

The latest value of a key is the reading with the newest time. An older reading that arrives later stays in the history. It does not replace the latest value, and the chart still includes it.

You do not add a “save” step. If a rule chain is bound to the device’s profile and the chain reaches Drop, that reading is not stored. The reply is success: true, ignored: true, dropped: true, and reason: "Dropped by rule engine". It is not stored: true. A profile alarm rule still runs on the reading the device sent. Any other end of the chain still stores it.

A chain can hold a reading while a delay runs, and the platform stores it when the delay finishes. That is still the platform saving the reading.

Telemetry history retention ​

The plan's retention period is the default for a device. When creating a device, you can optionally choose a shorter device-wide retention period. In Devices → device → Telemetry, you can set a different period for an individual key or clear an override to inherit the device or plan setting. Retention values are in days and cannot exceed a finite plan limit.

Changing a setting affects new readings only. Existing history keeps its previously assigned expiration, and the latest value shown for each key is separate from historical retention.

Attributes ​

An attribute is a value kept on the device, not a time series point.

  • Client attributes are sent by the device. The platform stores them and a person can read them. The device page and every signed-in route refuse to add, edit, or delete them. That includes integration.external_id. The device token route is the one that writes them. A rule chain can see them when Message in accepts attributes.
  • Server and shared attributes are written by the platform or by a person. Editing one changes the value. The scope and the key stay as they are. Gateway setup, a Modbus slave ID, a Modbus register map, and a LoRa DevEUI typed on the device page are server attributes. Set attribute in a rule chain writes a server or shared attribute. That node is for a value the chain decides. It is not required to keep what the device already sent.
  • A shared attribute can be pushed to the device. A client attribute is the device reporting back. When the platform’s connection to the broker returns, it publishes each device’s stored shared attributes again. A save made while that republish is running is the value that stays.
  • Dashboard switches and sliders use that pair as the control loop: write SHARED (desired), wait for CLIENT (confirmed). RPC is a separate one-shot path. See Command and control.

A key is at most 200 characters. The same key twice in one scope is refused. The same key in server and shared is kept. A request for one scope returns only that scope. Deleting an attribute removes that key from the list at once. It does not delete telemetry history.

A Modbus slave ID must be an integer from 1 to 247. Any other value is refused, including one sent by the device. The gateway host is the address only. The port is its own field. A host that already contains a port is refused.

support@autoconnecto.in · founder@autoconnecto.in · +91 92121 00555 · app.autoconnecto.in