A Developer's Guide to iBeacon

8
A Developer's Guide to iBeacon 1

Transcript of A Developer's Guide to iBeacon

A Developer's Guide to iBeacon

1

Hackathon Ideasinteractive tour guides. indoor navigation. interactive maps. connected home. proximity interactions. local content sharing. gamification. contextual user experiences. connected car. internet of things. content storage.

2

Bluetooth 4.0A new Bluetooth. Bluetooth Low Energy. Designed with ultra low-power consumption, worldwide operation, robustness and short range in mind.

3

What is iBeacon?• Based on Bluetooth 4.0

• Various form factors & vendors

• Passive broadcasting devices

• Permanent advertising (>100ms)

• Range up to 50m

• Detect location via

• Cellular, WiFi, GPS & iBeacon4

Beacon IDsProximity UUID (128 bit)F0018B9B-7509-4C31-A905-1A27D39C003CMajor1-65.535Minor1-65.535

5

iOS Beacon RangingNSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"F0018B9B-7509-4C31-A905-1A27D39C003C"];

CLBeaconRegion* region = [[CLBeaconRegion alloc] initWithProximityUUID:uuid identifier:@"My Region"];

[self.locationManager startRangingBeaconsInRegion:region];

- (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region { // do awesome things }

6

CLBeacon accuracy

Indicates the one sigma horizontal accuracy in meters. Use this property to differentiate between beacons with the same proximity value. Do not use it to identify a precise location for the beacon. Accuracy values may fluctuate due to RF interference.— Apple doc

7

Get Started• developer.apple.com/ibeacon

• github.com/beaconinside/awesome-ibeacon

• Links to Android, iOS, Node.js, Mac libraries and BLE apps

• beaconinside.com/getstarted (Beacon Spec)

• github.com/AltBeacon/android-beacon-library

8