Crate mijia

source · []
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

Configuration which determines when the sensor displays a happy face.

A historical temperature/humidity record stored by a sensor.

A wrapper around a Bluetooth session which adds some methods for dealing with Mijia sensors. This is the main entry point to the library.

A set of readings from a Mijia sensor.

The MAC address and opaque connection ID of a Mijia sensor which was discovered.

A duration which may be negative.

Enums

An error decoding a property from a sensor.

An error encoding a property to be sent to a sensor.

An error interacting with a Mijia sensor.

An event from a Mijia sensor.

The temperature unit which a Mijia sensor uses for its display.