Created
June 10, 2014 08:25
-
-
Save ennioma/40ce428229f700193dd3 to your computer and use it in GitHub Desktop.
Turn On iBeacon Advertising
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)advertise | |
{ | |
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:kSomeUUID major:1 minor:1 identifier:kSomeId]; | |
NSDictionary *beaconPeripheralData = [region peripheralDataWithMeasuredPower:nil]; | |
[self.peripheralManager startAdvertising:beaconPeripheralData]; | |
NSLog(@"Advertising on for the region: %@.", region); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment