Instance Method

peripheralDidUpdateRSSI(_:error:)

Invoked when you retrieve the value of the peripheral’s current RSSI while it is connected to the central manager.

Declaration

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

Parameters

peripheral

The peripheral providing this information.

error

If an error occurred, the cause of the failure.

Discussion

This method is invoked when your app calls the readRSSI() method. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.

See Also

Retrieving a Peripheral’s Received Signal Strength Indicator (RSSI) Data

func peripheral(CBPeripheral, didReadRSSI: NSNumber, error: Error?)

Invoked after you call readRSSI() to retrieve the value of the peripheral’s current RSSI while it is connected to the central manager.