---
title: "readValue(for:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheral/readvalue(for:)-91hhp"
---

# readValue(for:)

Retrieves the value of a specified characteristic descriptor.

## Declaration

```swift
func readValue(for descriptor: CBDescriptor)
```

## Parameters

- `descriptor`: The characteristic descriptor whose value you want to read.

## Discussion

Discussion When you call this method to read the value of a characteristic descriptor, the peripheral calls the peripheral(_:didUpdateValueFor:error:) method of its delegate object. If the peripheral successfully retrieves the value of the characteristic descriptor, you can access it through the characteristic descriptor’s value property.

## See Also

### Reading Characteristic and Descriptor Values

- [readValue(for:)](corebluetooth/cbperipheral/readvalue(for:)-6u2kr.md)
