List the Telemetry Keys Currently Stored for a ThingsBoard Device
Source:R/push_to_thingsboard.R
tb_list_device_telemetry_keys.RdWraps GET /api/plugins/telemetry/DEVICE/{id}/keys/timeseries. Useful to
discover what's actually in the device-side time-series store before a
wipe, or to compare against the Parameter column of the gh-pages
source data.
Usage
tb_list_device_telemetry_keys(
device_id,
api_key = Sys.getenv("TB_API_KEY"),
host = Sys.getenv("TB_HOST", unset = "https://thingsboard.cloud")
)Arguments
- device_id
device UUID. Use
tb_get_device_idto resolve a name.- api_key
account-level API key. Defaults to env var
TB_API_KEY.- host
base URL of the ThingsBoard instance. Defaults to env var
TB_HOSTif set, otherwise"https://thingsboard.cloud".
Examples
if (FALSE) { # \dontrun{
id <- tb_get_device_id("wasserportal-gw-6038")
tb_list_device_telemetry_keys(id)
} # }