bg
bluez-generated
cargo install bluez-generated
bg

bluez-generated

A Homie MQTT bridge for the Xiaomi Mijia 2 hygrometer-thermometer. This repo also serves as the monorepo for a handful of helper crates related to Homie and Bluetooth.

by David Laban

0.2.0 (see all)License:MIT OR Apache-2.0
cargo install bluez-generated
Readme

Generated bindings for BlueZ

crates.io page docs.rs page

This crate contains async bindings for Bluez.

Bindings are generated from introspection data, using dbus-codegen. This means that it is relatively easy to maintain, but it only covers interfaces that I have the devices for.

Adding Interfaces

If there is an interface that you need which is not generated, it should be reasonably straightforward to generate them and send a pull request. See introspect.sh for details. It's also perfectly reasonable to generate the interfaces you need and vendor them into your project.

Future Direction

Only async bindings are generated. Blocking bindings could also be generated, but I'm unlikely to use them, so they would need to be contributed by someone else.

It would be nice to generate some strongly typed bindings around get_managed_objects() for bulk-fetching properties and add_match() for subscribing to events.

GitHub Stars

39

LAST COMMIT

12d ago

MAINTAINERS

2

CONTRIBUTORS

12

OPEN ISSUES

9

OPEN PRs

2
VersionTagPublished
0.2.0
2yrs ago
0.1.0
2yrs ago
No alternatives found
No tutorials found
Add a tutorial