View source: R/devices-properties-timeseries.R
devices_properties_timeseries | R Documentation |
Get device properties values in a range of time (note: this API method is bugged and waiting to be fixed by Arduino team. Here for completeness and future developments but would not suggest using it)
Official documentation: devicesV2Timeseries
devices_properties_timeseries( device_id, property_id, start = NULL, limit = NULL, store_token = "option", token = NULL, silent = FALSE )
device_id |
The id of the device |
property_id |
The id of the property |
start |
A |
limit |
The number of properties to select |
store_token |
Where your token is stored. If |
token |
A valid token created with |
silent |
Whether to hide or show API method success messages (default |
A tibble showing of time and value for property of given device
## Not run: Sys.setenv(ARDUINO_API_CLIENT_ID = 'INSERT CLIENT_ID HERE') Sys.setenv(ARDUINO_API_CLIENT_SECRET = 'INSERT CLIENT_SECRET HERE') create_auth_token() device_id = "fa7ee291-8dc8-4713-92c7-9027969e4aa1" property_id = "d1134fe1-6519-49f1-afd8-7fe9e891e778" devices_properties_timeseries(device_id = device_id, property_id = property_id, start = "2022-08-20", limit = 10) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.