pub async fn fetch_batch(
selector: &str,
contact: &str,
) -> Result<Vec<Sample>, FetchError>
Expand description
Fetch recent data in large batches.
Warning: this can return tenths of megabytes of data!
The selector
argument can have values: “”, “1h”, “24h”, “dust.min”, “temp.min”
let x = fetch_batch("1h").await.unwrap(); // fetch data from the last hour