pub struct Kkm {Show 19 fields
pub frame: &'static str,
pub encrypted: bool,
pub undecryptable: bool,
pub model: Option<u8>,
pub battery_mv: Option<u16>,
pub battery_percent: Option<u8>,
pub temperature: Option<f64>,
pub humidity: Option<f64>,
pub axis: Option<[i16; 3]>,
pub alarm: Option<u8>,
pub pir: Option<u8>,
pub lux: Option<u16>,
pub voc: Option<(u16, u32)>,
pub nox: Option<u16>,
pub co2: Option<(u16, u32)>,
pub new_records: Option<(u8, u16)>,
pub utc: Option<u32>,
pub mac: Option<String>,
pub firmware: Option<String>,
}Expand description
A KKM frame.
Fields§
§frame: &'static strsensor or system.
encrypted: boolEncrypted on the air.
undecryptable: boolEncrypted, and no password (or no address) to decrypt it with. When the password is wrong the readings are garbage: KKM’s format has no integrity check.
model: Option<u8>Device model (v2 sensor and system frames).
battery_mv: Option<u16>Battery voltage, mV (sensor frames).
battery_percent: Option<u8>Battery, percent (system frames).
temperature: Option<f64>Temperature, °C.
humidity: Option<f64>Relative humidity, %.
axis: Option<[i16; 3]>Three-axis reading (accelerometer in mg, or magnetometer on the S7S).
alarm: Option<u8>Alarm byte. Its bits are model specific; on the S7S parking sensor bits 0-1 are park status and bits 4-5 radar status.
pir: Option<u8>PIR indication.
lux: Option<u16>Illuminance, lux.
voc: Option<(u16, u32)>VOC index, and seconds since it was measured.
nox: Option<u16>NOx index.
co2: Option<(u16, u32)>CO2, ppm, and seconds since it was measured.
new_records: Option<(u8, u16)>New history records: record type and count.
utc: Option<u32>UTC seconds sent with an encrypted frame.
mac: Option<String>The beacon’s own MAC address, as printed (system frames).
firmware: Option<String>Firmware version (system frames).