Skip to content

bluetooth-bridge (crate)

The bridge as a library: the same code as the binary. crates.io, docs.rs, API docs for main.

  • run(config) runs the bridge until it is stopped.
  • Config is the configuration file; Config::load and Config::parse read one with every check the binary applies.
  • bridge::request runs one MQTT request against a Host, if you want the same request vocabulary in your own transport.
  • ha builds the Home Assistant discovery messages.

The MQTT API and configuration reference document the behavior.