Rust implementation of bosectl: control Bose headphones over the BMAP protocol on Bluetooth RFCOMM. Linux only; the transport uses BlueZ RFCOMM sockets.
The crate ships a library and the bmapctl command-line tool.
cargo install bose-bmap # installs bmapctl
bmapctl statusAs a library, the crate is named bose-bmap on crates.io and imported as bmap:
[dependencies]
bose-bmap = "0.4"let mut conn = bmap::connect(None, None)?;
println!("{:?}", conn.status()?);Supported devices, protocol notes, and the Python and C++ implementations live in the main repository.
MIT licensed.