List available devices or group of devices for a tenant.
list_devices(page_size = 2000, abridged = TRUE, parse_datetime = TRUE)
page_size | The page size, set to 2000 (maximum) by default. |
---|---|
abridged | If TRUE, exclude several fields from the result. |
parse_datetime | If TRUE, parse datetime fields from char to POSIXlt. |
A data.frame
with measurements.
List available devices or group of devices for a tenant.
Note that some columns in the returned data frame contain data frames themselves.
For example, c8y_Availability
is a data.frame
of 2 variables.
When abridged = TRUE
, the following fields are excluded from
the returned data frame: additionParents, childDevices, childAssets,
childAdditions, assetParents, deviceParents, self
.
When parse_datetime = TRUE
, the following fields are parsed from char to
POSIXlt: creationTime, lastUpdated, c8y_Availability.lastMessage
.
if (FALSE) { list_devices() }