data_item_data = data.frame(timestamp = as.POSIXct(c(0.5, 1, 1.008, 1.011) +
1445579573, tz = 'CST6CDT', origin = "1970-01-01"),
value = c("a", "b", "c", "d"))
data("example_mtc_device")
mtc_device_updated =
add_data_item_to_mtc_device(example_mtc_device, data_item_data, data_item_name = "test",
data_item_type = "Event", source_type = "derived")
print(mtc_device_updated)Run the code above in your browser using DataLab