Articles on: cThings Cloud

Updating the Data Interval of a device

The Data Interval specifies how often a device is expected to send data. This is used to determine how to automatically aggregate the data on graphs. For example, if a device is expected to send 30-minute data, setting the Data Interval to 30 minutes will ensure data is aggregated 30-minutely on graphs wherever possible. If a device only sends data daily it would not make sense to aggregate the data 30-minutely; instead, showing data aggregated daily would make more sense.

Changing the Data Interval does not update the frequency at which a device transmits data

Updating the Data Interval in cThings Cloud



To update the Data Interval in cThings Cloud:

Navigate to your Device
Go to the Device menu and select Edit Device
Select the most appropriate interval form the Data Interval dropdown

Updating the Data Interval of a device

Updating the Data Interval using the cThings Cloud API



To update the Data Interval using the cThings Cloud API, make a POST request to the following endpoint (where the deviceId is the UUID of the device) with the following body:

https://api.cthings.cloud/v3/device/{deviceId}

{
    "dataInterval": "<integer>"
}


The dataInterval is an integer in seconds. A Data Interval of 30 minutes would be 1800

Updated on: 14/08/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!