Contents

peripheralDidUpdateRSSI(_:error:)

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

Declaration

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

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