ClientCharacteristicConfigurationDescriptor
abstract fun ClientCharacteristicConfigurationDescriptor(enabled: Boolean = false, permissions: Set<Permission> = Permission.READ and Permission.WRITE): Int
Declares a Client Characteristic Configuration descriptor.
This descriptor is used to enable or disable notifications and indications for the characteristic.
Unless you want to customize its initial value, you do not need to add this descriptor manually. It is added automatically when the characteristic has NOTIFY or INDICATE property.
Parameters
enabled
Whether notifications/indications are enabled initially.
permissions
The permissions of the descriptor. Use Permission.WRITE_ENCRYPTED to require bonding to enable notifications.