bluez / bluer

BlueR — Official BlueZ Bindings for Rust
https://crates.io/crates/bluer
Other
321 stars 45 forks source link

session.default_adapter().await? throws `Error: Error { kind: NotFound, message: "" }` #92

Closed r-bt closed 1 year ago

r-bt commented 1 year ago

bluer version: 0.16.0-pre1 bluez version: 5.68

I've got the following code:

let session = bluer::Session::new().await?;
let adapter = session.default_adapter().await?;

However, around every second time that I run it it throws Error: Error { kind: NotFound, message: "" }, I've added println! statements and identified that let adapter = session.default_adapter().await? is the cause.

surban commented 1 year ago

Could you verify that you have a working Bluetooth adapter using bluetoothctl?

surban commented 1 year ago

Closing, because no further information was provided. Feel free to re-open if the issue is not solved.