readRSSI()
Retrieves the current RSSI value for the peripheral while connected to the central manager.
Declaration
func readRSSI()Discussion
On macOS, when you call this method to retrieve the Received Signal Strength Indicator (RSSI) of the peripheral while connected to the central manager, the peripheral calls the peripheralDidUpdateRSSI(_:error:) method of its delegate object. If retrieving the RSSI value of the peripheral succeeds, you can access it through the peripheral’s rssi property.
On iOS and tvOS, when you call this method to retrieve the RSSI of the peripheral while 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.