[][src]Function my_iot::core::persistence::select_readings

pub fn select_readings(
    db: &Connection,
    sensor_id: &str,
    since: &DateTime<Local>
) -> Result<Vec<Reading>, Error>

Select the latest sensor readings within the given time interval.