ClientBleGattDescriptor

A helper class which provides operations which can happen on a GATT descriptor. It main responsibility is to provide write/read features in a synchronous manner, because simultaneous calls will be ignored by Android API. It has DataByteArray value assigned which can change during communication.

Properties

Link copied to clipboard

Permissions of the descriptor.

Link copied to clipboard
val uuid: UUID

UUID of the descriptor.

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
suspend fun read(): DataByteArray

Reads value from a descriptor and suspends for the result.

Link copied to clipboard
@RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
suspend fun write(value: DataByteArray)

Writes value to a descriptor.