Function fetch_by_sensor

Source
pub async fn fetch_by_sensor(
    api_id: u64,
    contact: &str,
) -> Result<Vec<Sample>, FetchError>
Expand description

Fetch all measurements of the last 5 minutes for one sensor The API-ID can be found by clicking on your sensor on the map. This is not the chipID.

    let x = sensor_community::fetch_by_sensor(87420).await.unwrap();