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.

@rickymohk
Copy link
Author

rickymohk commented Jul 4, 2025

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)

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

Labels

None yet

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

1 participant