Peripheral

public class Peripheral: NSObject

An interface to the Bluetooth peripheral.

  • The UUID of the peripheral.

    Declaration

    Swift

    public var uuid: PeripheralIdentifier
  • The name of the peripheral.

    Declaration

    Swift

    public var name: String?
  • Requests the current RSSI value from the peripheral, and the value is returned via the RSSIObserver delegation.

    Declaration

    Swift

    public func readRSSI()
  • Register a RSSI observer that can receive the RSSI value when readRSSI is called.

    Declaration

    Swift

    public func register(observer: RSSIObserver)
  • Unregister a RSSI observer.

    Declaration

    Swift

    public func unregister(observer: RSSIObserver)