R/get_measurements_0.R
get_measurements_0.Rd
Get the measurements for a device for a time period.
get_measurements_0(device_id, date_from = NULL, date_to = NULL, page_size = 2000, abridged = TRUE, parse_datetime = TRUE)
device_id | The device id. |
---|---|
date_from | The starting datetime. |
date_to | The ending datetime. |
page_size | The page size, set to 2000 (maximum) by default. Used when at least one of the dates is NULL. |
abridged | If TRUE, exclude "self" and "source" fields from the result. |
parse_datetime | If TRUE, parse "time" field from char to POSIXlt. |
A data.frame
with measurements.
Note that some columns in the returned data frame contain data frames themselves.
For example, c8y_Mobile
is a data.frame
of 11 variables.
If both date_from
and date_to
are present, page_size
is not used.
If page_size
and both dates are NULL, the function will return up to 5 rows of data.
Get the measurements for a device for a time period.
The parameter page_size
is only used if date_from
or date_to
are NULL, or both are NULL.
Cumulocity Events API Cumulocity Measurements API