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

BluetoothLE: Bugfix for removing the notification/indication handler #1381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hosse005
Copy link

@hosse005 hosse005 commented Mar 9, 2023

Bugfix to properly release characteristic notification/indication handlers upon unsubscribing.

Description

Name of sample: BluetoothLE

Previous behavior was to receive duplicate characteristic packets proportional to the number of times the characteristic had been subscribed/unsubscribed w/in a given app launch.

Testing

Added code to store packets received from the peripheral. Configured the peripheral to send the value of a counter which updates every second. Verified that duplicate packets are captured with every user Subscribe/Unsubscribe action. e.g. upon enabling subscribe for a given characteristic three times, I receive 3 packets with the same content.

Type of change

  • Bug fix
  • New feature
  • Porting to new language

Supported platforms

Minimum OS version: (example: 18362)

  • All UWP platforms
  • Desktop
  • Holographic
  • IoT
  • Xbox
  • 10X

Supported languages

  • C#
  • C++/WinRT

Additional remarks

None

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.

None yet

1 participant