add 3 new sensors
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -90,6 +90,21 @@ fn aggregate_values(
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let average_duration = 15;
|
||||
let sensors = [
|
||||
Sensor::new(
|
||||
"maison".to_string(),
|
||||
"bureau".to_string(),
|
||||
"temperature".to_string(),
|
||||
),
|
||||
Sensor::new(
|
||||
"maison".to_string(),
|
||||
"bureau".to_string(),
|
||||
"humidite".to_string(),
|
||||
),
|
||||
Sensor::new(
|
||||
"maison".to_string(),
|
||||
"bureau".to_string(),
|
||||
"pression".to_string(),
|
||||
),
|
||||
Sensor::new(
|
||||
"maison".to_string(),
|
||||
"bureau".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user