---
title: "discoverDescriptors(for:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheral/discoverdescriptors(for:)"
---

# discoverDescriptors(for:)

Discovers the descriptors of a characteristic.

## Declaration

```swift
func discoverDescriptors(for characteristic: CBCharacteristic)
```

## Parameters

- `characteristic`: The characteristic whose descriptors you want to discover.

## Discussion

Discussion When the peripheral discovers one or more descriptors of the specified characteristic, it calls the peripheral(_:didDiscoverDescriptorsFor:error:) method of its delegate object. After the peripheral discovers the descriptors of the characteristic, you can access them through the characteristic’s descriptors property.

## See Also

### Discovering Characteristics and Descriptors

- [discoverCharacteristics(_:for:)](corebluetooth/cbperipheral/discovercharacteristics(_:for:).md)
