ESTRequestBeaconColor

@interface ESTRequestBeaconColor : ESTRequestGetJSON

ESTRequestBeaconColor is used to fetch color of single beacon device.

  • Initialise request with MAC address.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMacAddress:(nonnull NSString *)macAddress;

    Swift

    init(macAddress: String)

    Parameters

    macAddress

    MAC address of device provided as NSString

    Return Value

    instance of request

  • Initialise request with MAC address.

    Declaration

    Objective-C

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

    Swift

    init(beacon: CLBeacon)

    Parameters

    beacon

    Proximity UUID, Major and Minor provided as CLBeacon

    Return Value

    instance of request

  • Initialise request with Beacon parameters.

    Declaration

    Objective-C

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

    Swift

    init(proximityUUID: UUID, major: CLBeaconMajorValue, minor: CLBeaconMinorValue)

    Parameters

    proximityUUID

    Beacon’s proximity UUID

    major

    Beacon’s major

    minor

    Beacon’s minor

    Return Value

    instance of request

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

    Declaration

    Objective-C

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

    Swift

    func sendRequest(completion: @escaping ESTRequestBeaconColorBlock)

    Parameters

    completion

    Completion block with returned data (ESTBeaconVO object with color and macAddress property filled).