bluetooth icon indicating copy to clipboard operation
bluetooth copied to clipboard

How to "DisableNotifications"

Open roffe opened this issue 1 year ago • 4 comments

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?

roffe avatar Mar 12 '24 09:03 roffe

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.

ansoni-san avatar Mar 14 '24 01:03 ansoni-san

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

roffe avatar Mar 14 '24 07:03 roffe