---
title: "peripheralDidUpdateRSSI(_:error:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbperipheraldelegate/peripheraldidupdaterssi(_:error:)"
---

# peripheralDidUpdateRSSI(_:error:)

Tells the delegate that retrieving the value of the peripheral’s current Received Signal Strength Indicator (RSSI) succeeded.

## Declaration

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

## Parameters

- `peripheral`: The peripheral providing this information.
- `error`: The reason the call failed, or nil if no error occurred.

## Discussion

Discussion Core Bluetooth invokes this method when your app calls the readRSSI() method, while the peripheral is connected to the central manager. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.

## See Also

### Retrieving a Peripheral’s RSSI Data

- [peripheral(_:didReadRSSI:error:)](corebluetooth/cbperipheraldelegate/peripheral(_:didreadrssi:error:).md)
