Skip to content

Conversation

@twyatt
Copy link
Member

@twyatt twyatt commented Feb 20, 2025

No description provided.

@twyatt twyatt changed the title Add support for BluetoothRemoteGATTDescriptor.writeValue [skip ci] Add support for BluetoothRemoteGATTDescriptor.writeValue Feb 20, 2025
@twyatt twyatt force-pushed the twyatt/write-descriptor branch from 6dc0b60 to 30e1049 Compare February 20, 2025 22:47
@twyatt twyatt force-pushed the twyatt/write-descriptor branch from 30e1049 to cd81ce1 Compare February 20, 2025 23:08
@twyatt
Copy link
Member Author

twyatt commented Feb 27, 2025

I have not found a reasonable way to test this — at least not with any peripherals that I have on hand.

The SensorTag doesn't have any descriptors that are writable (that I am aware of), aside from CCCD.
Core Bluetooth does not permit writing to CCCD directly:

Screenshot 2025-02-27 at 3 23 27 PM

It does have a descriptor that its permission is unknown (to me):

  • Service: 0xffe0
  • Characteristic: 0xffe1
  • Descriptor: 0x2901

Attempting to write to this descriptor in Core Bluetooth just never gets a call back on the delegate.

Attempting on a modified version of the "Web Bluetooth / Write Descriptor Sample" in Chrome results in:

Argh! NotSupportedError: GATT operation failed for unknown reason.
Screenshot

Screenshot 2025-02-27 at 2 04 42 PM

This should be testable with a peripheral of known configuration, so may be better left to after JuulLabs/kable#51 has shipped.

@davertay-j davertay-j added the minor Changes that should bump the MINOR version number label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Changes that should bump the MINOR version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants