on Descriptor Write
open override fun onDescriptorWrite(gatt: BluetoothGatt, descriptor: BluetoothGattDescriptor, status: Int)
Called when a descriptor write operation completes.
This callback is commonly used to confirm that notifications or indications have been enabled/disabled for a characteristic by writing to its Client Characteristic Configuration Descriptor (CCCD).
Parameters
gatt
The BluetoothGatt instance for the connection.
descriptor
The BluetoothGattDescriptor that was written to.
status
BluetoothGatt.GATT_SUCCESS if the write completed successfully, or an error code if the write failed.
See also
Connection State Machine. handle Descriptor Write