Instance Method

readRSSI()

Retrieves the current RSSI value for the peripheral while it is connected to the central manager.

Declaration

func readRSSI()

Discussion

In macOS, when you call this method to retrieve the RSSI of the peripheral while it is currently connected to the central manager, the peripheral calls the peripheralDidUpdateRSSI:error: method of its delegate object. If the RSSI value of the peripheral is successfully retrieved, you can access it through the peripheral’s rssi property.

In iOS and tvOS, when you call this method to retrieve the RSSI of the peripheral while it is currently connected to the central manager, the peripheral calls the peripheral(_:didReadRSSI:error:) method of its delegate object, which includes the RSSI value as a parameter.

See Also

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

var rssi: NSNumber?

The RSSI, in decibels, of the peripheral.

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