Expand description
A library for connecting to Xiaomi Mijia 2 Bluetooth temperature/humidity sensors.
Currently only supports running on Linux, as it depends on BlueZ for Bluetooth.
Start by creating a MijiaSession
.
Re-exports§
pub use bluez_async as bluetooth;
Structs§
- Comfort
Level - Configuration which determines when the sensor displays a happy face.
- History
Record - A historical temperature/humidity record stored by a sensor.
- Mijia
Session - A wrapper around a Bluetooth session which adds some methods for dealing with Mijia sensors. This is the main entry point to the library.
- Readings
- A set of readings from a Mijia sensor.
- Sensor
Props - The MAC address and opaque connection ID of a Mijia sensor which was discovered.
- Signed
Duration - A duration which may be negative.
Enums§
- Decode
Error - An error decoding a property from a sensor.
- Encode
Error - An error encoding a property to be sent to a sensor.
- Mijia
Error - An error interacting with a Mijia sensor.
- Mijia
Event - An event from a Mijia sensor.
- Temperature
Unit - The temperature unit which a Mijia sensor uses for its display.