Writes the value of a characteristic descriptor.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The value to write.
The descriptor containing the value to write.
When you call this method to write the value of a characteristic descriptor, the peripheral calls the
peripheral(_: method of its delegate object.
This method copies the
data passed into the data parameter, and you can dispose of it after the method returns.
You can’t use this method to write the value of a client configuration descriptor (represented by the
CBUUIDClient constant), which describes the configuration of notification or indications for a characteristic’s value. If you want to manage notifications or indications for a characteristic’s value, you must use the
set method instead.