Skip to contents

Wraps 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_id to 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_HOST if set, otherwise "https://thingsboard.cloud".

Value

character vector of telemetry key names. May be of length 0.

Examples

if (FALSE) { # \dontrun{
id <- tb_get_device_id("wasserportal-gw-6038")
tb_list_device_telemetry_keys(id)
} # }