DescriptorReadRequest

data class DescriptorReadRequest(val device: ClientDevice, val requestId: Int, val offset: Int, val descriptor: IBluetoothGattDescriptor) : ServerGattEvent.DescriptorEvent

A remote client has requested to read a local descriptor.

An application must call GattServerAPI.sendResponse to complete the request.

See also

(https://developer.android.com/reference/android/bluetooth/BluetoothGattServerCallback#onDescriptorReadRequest(android.bluetooth.BluetoothDevice,%20int,%20int,%20android.bluetooth.BluetoothGattDescriptor))

Constructors

Link copied to clipboard
constructor(device: ClientDevice, requestId: Int, offset: Int, descriptor: IBluetoothGattDescriptor)

Properties

Link copied to clipboard

Descriptor to be read.

Link copied to clipboard
open override val device: ClientDevice

The remote device that has requested the read operation.

Link copied to clipboard
val offset: Int

Offset into the value of the characteristic.

Link copied to clipboard

The Id of the request.