Instance Method

peripheral(_:didReadRSSI:error:)

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

Declaration

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

Parameters

peripheral

The peripheral providing this information.

RSSI

The RSSI, in decibels, of the peripheral.

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 and the parameter RSSI reports the receiver’s signal strength, in decibels. If unsuccessful, the error parameter returns the cause of the failure.

See Also

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

func peripheralDidUpdateRSSI(CBPeripheral, error: Error?)

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

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software