---
title: "peripheral(_:didCompleteChannelSoundingSession:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheraldelegate/peripheral(_:didcompletechannelsoundingsession:)"
---

# peripheral(_:didCompleteChannelSoundingSession:)

## Declaration

```swift
optional func peripheral(_ peripheral: CBPeripheral, didCompleteChannelSoundingSession error: (any Error)?)
```

## Parameters

- `peripheral`: The peripheral providing this update.
- `error`: If an error occurred, the cause of the failure.

## Discussion

Discussion This method is called when a channel sounding session completes.
