read

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

Reads value from a descriptor and suspends for the result.

Return

Read value.

Throws

on GATT communication failure.

when a BLE device is disconnected.