---
title: "peripheral(_:didReceive:error:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheraldelegate/peripheral(_:didreceive:error:)"
---

# peripheral(_:didReceive:error:)

## Declaration

```swift
optional func peripheral(_ peripheral: CBPeripheral, didReceive results: CBChannelSoundingProcedureResults?, error: (any Error)?)
```

## Parameters

- `peripheral`: The peripheral providing this update.
- `results`: An object containing the results of a channel sounding procedure.
- `error`: If an error occurred, the cause of the failure.

## Discussion

Discussion This method returns the results of a channel sounding procedure.
