Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Turn On iBeacon Advertising
- (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