deviceplug / btleplug

Rust Cross-Platform Host-Side Bluetooth LE Access Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOS cannot reconnect to already paired peripheral

espenfjo opened this issue · comments

Describe the bug

  1. Connecting to a new peripheral opens "Pair new device dialog" on MacOS
  2. Entering pin show on device in the MacOS dialog results in a successful connection
  3. Disconnect(peripheral.disconnect().await)
  4. Wait X seconds (To ensure device and OS is ready for new BT connections)
  5. New scan
  6. peripheral.connect().await to the device hangs forever

Expected behavior
6. peripheral.connect().await to a previously paired device should succeed.

Actual behavior
Connection to previously paired device hangs forever.

Additional context
"Forgetting" the device from MacOS will let me connect again.

This seems to be an intermittent issue with the device