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

Allow access to Service Changed Characteristic #180

Open
djbutler opened this issue Jan 7, 2023 · 1 comment
Open

Allow access to Service Changed Characteristic #180

djbutler opened this issue Jan 7, 2023 · 1 comment

Comments

@djbutler
Copy link

djbutler commented Jan 7, 2023

Use case: Changing a device between BLE HID mode and some other mode where HID is disabled.

It's not so clear from the documentation if this is possible. I tried to implement my own Generic Attribute Service (UUID 0x1801) with Service Changed Characteristic (UUID 0x2A05) using adafruit_ble.services, but this produced an error (presumably because a service with UUID 0x1801 was already created by CircuitPython earlier in the BLE lifecycle).

The Adafruit Bluetooth Arduino libraries seem to allow the user to enable the Service Changed Characteristic via AdafruitBluefruit::configServiceChanged (https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/adafruitbluefruit). Is something similar possible here?

Thank you!

@tannewt
Copy link
Member

tannewt commented Jan 10, 2023

I believe the nRF softdevice manages the service changed characteristic for us. We use it to announce new servers but have no way of removing them atm unfortunately.

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