GattAdvertisement

public final class GattAdvertisement

Class that provide all advertisement datas with direct access variables.

  • The current received signal strength indicator (RSSI) of the peripheral, in decibels.

    Declaration

    Swift

    public let rssi: Int
  • Creates GattAdvertisement from advertisement dictionary and rssi value.

    Declaration

    Swift

    internal init(with advertisementData: [String : Any], rssi: Int)
  • Local name of a peripheral.

    Declaration

    Swift

    public var localName: String? { get }
  • Transmit power of a peripheral.

    Declaration

    Swift

    public var txPowerLevel: Int? { get }
  • A list of one or more CBUUID objects, representing CBService UUIDs.

    Declaration

    Swift

    public var serviceUUIDs: [CBUUID]? { get }
  • A dictionary containing service-specific advertisement data. Keys are CBUUID objects, representing CBService UUIDs. Values are Data objects.

    Declaration

    Swift

    public var serviceData: [CBUUID : Data]? { get }
  • A dictionary containing service-specific advertisement data. Keys are CBUUID objects, representing CBService UUIDs. Values are Data objects.

    Declaration

    Swift

    public var manufacturerData: Data? { get }
  • A list of one or more CBUUID objects, representing CBService UUIDs that were found in the overflow area of the advertising data. Due to the nature of the data stored in this area, UUIDs listed here are best effort and may not always be accurate.

    Declaration

    Swift

    public var overflowService: [CBUUID]? { get }
  • Whether or not the advertising event type was connectable.

    Declaration

    Swift

    public var isConnectable: Bool { get }
  • A list of one or more CBUUID objects, representing CBService UUIDs.

    Declaration

    Swift

    public var solicitedService: [CBUUID]? { get }