RSSIObserver

public protocol RSSIObserver : AnyObject

A protocol allowing conforming objects to monitor the RSSI changes of a connected peripheral.

  • Called whenever a peripheral’s RSSI value changes.

    Declaration

    Swift

    func didReadRSSI(from peripheral: PeripheralIdentifier, RSSI: NSNumber, error: Error?)

    Parameters

    from

    the peripheral that read the RSSI value.

    RSSI

    the RSSI value as a NSNumber.

    error

    the error if the RSSI read failed.