[][src]Crate mijia

A library for connecting to Xiaomi Mijia 2 Bluetooth temperature/humidity sensors.

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. The underlying Bluetooth session may still be accessed.

Readings

A set of readings from a Mijia sensor.

SensorProps

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

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.