Skip to content

Conversation

@rickymohk
Copy link

Fix #39
For some reason on Windows 11 when trying to discover service, a disconnect event will be emitted from some staled BluetoothLEDevice instance. Identifying the device just by uuid is not enough. Have to ensure peripheral.device is referencing the same device or otherwise it will be false firing.
Also added closing service, session and device on disconnect to ensure proper disconnection from windows.
(The lack of this cleanup might be the reason of the staled device instance exist in the first place)

@stoprocent stoprocent merged commit b04810c into stoprocent:main Jul 14, 2025
22 of 30 checks passed
@github-actions
Copy link

🎉 This PR is included in version 2.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On Windows 11, connect device could resolve as if it is connected when in reality it actually not

2 participants