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>> {
|
) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let average_duration = 15;
|
let average_duration = 15;
|
||||||
let sensors = [
|
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(
|
Sensor::new(
|
||||||
"maison".to_string(),
|
"maison".to_string(),
|
||||||
"bureau".to_string(),
|
"bureau".to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user