How do I update 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.
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 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>"
}
Updated on: 15/01/2025
Thank you!