mirror of
https://codeberg.org/icewind/mitemp-rs.git
synced 2026-06-03 17:24:08 +02:00
pub sensor data
This commit is contained in:
parent
a98180af09
commit
f822c3f03f
1 changed files with 3 additions and 3 deletions
|
|
@ -51,9 +51,9 @@ pub fn listen(adapter: ConnectedAdapter, sensor_mac: BDAddr) -> Receiver<SensorD
|
||||||
|
|
||||||
#[derive(Default, Clone, Debug)]
|
#[derive(Default, Clone, Debug)]
|
||||||
pub struct SensorData {
|
pub struct SensorData {
|
||||||
battery: u8,
|
pub battery: u8,
|
||||||
temperature: f32,
|
pub temperature: f32,
|
||||||
humidity: f32,
|
pub humidity: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SensorData {
|
impl SensorData {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue