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 (Stop|Disable)Notifications? #263

Closed
hgqcode opened this issue Apr 11, 2024 · 2 comments
Closed

How to (Stop|Disable)Notifications? #263

hgqcode opened this issue Apr 11, 2024 · 2 comments

Comments

@hgqcode
Copy link

hgqcode commented Apr 11, 2024

"I am using the Linux system. When I disconnect the device and then reconnect it, I still receive notifications from the previous session, causing me to receive multiple duplicate messages. How can I stop notifications when disconnecting the device?

@jasday
Copy link

jasday commented Apr 11, 2024

This should be handled when the device is disconnected, but is currently not working.

There's a fix in this PR #262, however I'm having issues getting it working on certain chips. For now you can call characteristic.EnableNotifications(nil) to disable notifications once you're done with them.

@hgqcode
Copy link
Author

hgqcode commented Apr 12, 2024

This should be handled when the device is disconnected, but is currently not working.

There's a fix in this PR #262, however I'm having issues getting it working on certain chips. For now you can call characteristic.EnableNotifications(nil) to disable notifications once you're done with them.

Thank you. I've already called characteristic.EnableNotifications(nil) to disable notifications once i am done with them.

@hgqcode hgqcode closed this as completed Apr 12, 2024
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