ll_get_devices_cloud_state: Get device state

ll_get_devices_cloud_stateR Documentation

Get device state

Description

Get state from the particle cloud for devices.

Usage

ll_get_devices_cloud_state(
  devices = ll_get_devices(group_id = group_id, con = con),
  group_id = default(group_id),
  con = default(con),
  access_token = default(access_token),
  convert_to_TZ = Sys.timezone(),
  spread = FALSE,
  quiet = default(quiet)
)

Arguments

devices

data frame with devices for which to get cloud info, by default all devices associated with the group

access_token

the access token for the accout

convert_to_TZ

if provided, converts the log_datetime to the provided timezone (by default the local one stored in Sys.timezone()). If NULL, will keep it as UTC.

spread

whether to convert the state data into wide format (note that this combines value and units columns!)

Value

nested data frame (converted from JSON)


KopfLab/lablogger documentation built on July 6, 2023, 12:03 a.m.