read

abstract suspend fun read(): ByteArray

Reads the value of the descriptor.

Return

The value of the descriptor.

Throws

if the operation failed.

if the descriptor has been invalidated due to disconnection or service change event.

if the implementation fails, see BluetoothException.cause for a reason.