From dad74a0a439fdbd5e655a7156d4d0ce623d744d4 Mon Sep 17 00:00:00 2001 From: Maxime Augier Date: Thu, 18 Apr 2024 10:27:06 +0200 Subject: [PATCH] Data --- src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.rs b/src/main.rs index 4557a6d..0ea6818 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,17 @@ use bluer::{self, monitor::Monitor}; use anyhow::Result; use futures::StreamExt; +struct Data { + /// Temperature in °C + temperature: f32, + + /// Humidity in % + humidity: f32, + + /// CO2 in parts per million + co2: f32, +} + #[tokio::main(flavor="current_thread")] async fn main() -> Result<()> {