Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to "DisableNotifications" #248

Open
roffe opened this issue Mar 12, 2024 · 2 comments
Open

How to "DisableNotifications" #248

roffe opened this issue Mar 12, 2024 · 2 comments

Comments

@roffe
Copy link

roffe commented Mar 12, 2024

I have a application that needs to be able to connect to the same device, disconnect from it and then re-connect again multiple times

It seems once enabled a notification keeps running and blocks the freeing of the device with Disconnect. Only solution i've found is to exit the application and restart it which is a very bad workflow,

Has anyone been able to solve this on Windows platform?

@ansoni-san
Copy link
Contributor

ansoni-san commented Mar 14, 2024

Yeah there's some changes needed for notifications on Windows to properly free everything on disconnect.

We haven't needed notifications just yet but will need them in a few months. It shouldn't be too hard to make the needed additions/changes to this library.

I'm sure a patch would be accepted if you make one.

Otherwise I probably will in a few months.

@roffe
Copy link
Author

roffe commented Mar 14, 2024

I'm sure a patch would be accepted if you make one.

I have no clue how any of this works, this is my first contact with BLE ever in my coding career so we just have to pray someone who knows how to helps

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

No branches or pull requests

2 participants