Search code examples
iosobjective-cestimote

How to connect to a beacon ESTIMOTE


I am looking at the SDK for iPhone for estimate beacons, I see

- (void)connectToBeacon

to connect to the beacon, but how can i pass it is UUID,Major and Minor to connect, doesn't seem to allow me.

any advice would be great..

thanks


Solution

  • You don't use the major/minor when connecting to a beacon. This method is used to connect to a beacon in order to change things like the UUID, major, and minor broadcast values. This would be used like:

    ESTBeacon *myBeacon = ...;
    [myBeacon connectToBeacon];
    

    Edit: you need to connect to a Beacon in range, and you can typically get that beacon from ESTBeaconManager's beaconManager:didDiscoverBeacons:inRegion: which will give you a NSArray of ESTBeacon objects in range.