RemoteDescriptor

A GATT descriptor of a characteristic on a remote connected peripheral device.

The API allows to access the value of the descriptor. Depending on the descriptor, it may be possible to read or write its value.

Properties

Link copied to clipboard
abstract override val characteristic: RemoteCharacteristic
Link copied to clipboard
abstract val instanceId: Int
Link copied to clipboard
open override val owner: Peripheral<*, *>?
Link copied to clipboard
abstract val uuid: Uuid

Functions

Link copied to clipboard
abstract suspend fun read(): ByteArray

Reads the value of the descriptor.

Link copied to clipboard
abstract suspend fun write(data: ByteArray)

Writes the value of the descriptor.