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.Configis the configuration file;Config::loadandConfig::parseread one with every check the binary applies.bridge::requestruns one MQTT request against aHost, if you want the same request vocabulary in your own transport.habuilds the Home Assistant discovery messages.
The MQTT API and configuration reference document the behavior.