Crate mijia[−][src]
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
ComfortLevel | Configuration which determines when the sensor displays a happy face. |
HistoryRecord | A historical temperature/humidity record stored by a sensor. |
MijiaSession | 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. |
SensorProps | The MAC address and opaque connection ID of a Mijia sensor which was discovered. |
SignedDuration | A duration which may be negative. |
Enums
DecodeError | An error decoding a property from a sensor. |
EncodeError | An error encoding a property to be sent to a sensor. |
MijiaError | An error interacting with a Mijia sensor. |
MijiaEvent | An event from a Mijia sensor. |
TemperatureUnit | The temperature unit which a Mijia sensor uses for its display. |