ESTRequestBeaconMac

@interface ESTRequestBeaconMac : ESTRequestGetJSON

ESTRequestBeaconMac allows to get MAC address for beacon based on CLBeacon (ProximityUUID, Major, Minor) identification. Method is publicly available for all beacons.

  • Initialise request with beacon.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBeacon:(nonnull CLBeacon *)beacon;

    Swift

    init(beacon: CLBeacon)

    Parameters

    beacon

    beacon should be used to get MAC address.

    Return Value

    instance of request

  • Initialise request with beacon params.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithProximityUUID:(nonnull NSUUID *)proximityUUID
                                            major:(short)major
                                            minor:(short)minor;

    Swift

    init(proximityUUID: UUID, major: Int16, minor: Int16)

    Parameters

    proximityUUID

    Corresponding beacon Proximity UUID.

    major

    Corresponding beacon Major.

    minor

    Corresponding beacon Minor.

    Return Value

    instance of request

  • Methods allows to send request with completion block invoked as a result.

    Declaration

    Objective-C

    - (void)sendRequestWithCompletion:(nonnull ESTRequestBeaconMacBlock)completion;

    Swift

    func sendRequest(completion: @escaping ESTRequestBeaconMacBlock)

    Parameters

    completion

    Completion block with returned data (CLLocation object).