Learn R Programming

rzentra (version 0.1.0)

zc_settings: retrieve settings of a device

Description

retrieve settings of a device

retrieve statuses of a device

retrieve readings of a device

Usage

zc_settings(token = NULL, sn = NULL, start_time = NULL, end_time = NULL)

zc_statuses(token = NULL, sn = NULL, start_time = NULL, end_time = NULL)

zc_readings(token = NULL, sn = NULL, start_time = NULL, start_mrid = NULL)

Arguments

token

(required) authorization token as returned by zc_token

sn

(required) the serial number for the device

start_time

Return data with timestamps greater or equal start_time. Specify start_time in UTC seconds, e.g. 1579474800)`

end_time

Return data with timestamps smaller or equal end_time. Specify end_time in UTC seconds, , e.g. 1579474800))`

start_mrid

Return data with mrids greater or equal start_mrid. This can be user to query data that has not been received yet, see guidelines.

Examples

Run this code
# NOT RUN {
zc_settings(token = "yourtoken",
  sn = "z6-00033",
  start_time = as.numeric(as.POSIXct(Sys.Date(), origin = "1970-01-01")))
# }
# NOT RUN {
zc_statuses("yourtoken", sn = "z6-00033",
  start_time = as.numeric(as.POSIXct(Sys.Date(), origin = "1970-01-01")))
# }
# NOT RUN {
zc_readings("yourtoken", sn = "z6-00033",
  start_time = as.numeric(as.POSIXct(Sys.Date(), origin = "1970-01-01")))
# }

Run the code above in your browser using DataLab