Skip to content

Instantly share code, notes, and snippets.

@CHLibrarian
Created August 11, 2014 19:52
Show Gist options
  • Select an option

  • Save CHLibrarian/40cb8d5346a7773b0daa to your computer and use it in GitHub Desktop.

Select an option

Save CHLibrarian/40cb8d5346a7773b0daa to your computer and use it in GitHub Desktop.
ContextHub Element Services Beacon Retrieve ID Gist
// Getting a beacon with a specific ID
NSString *beaconID = @"1000";
[[CCHBeaconService sharedInstance] getBeaconWithId:beaconID completionHandler:^(NSDictionary *beacon, NSError *error)completionHandler {
if (!error) {
CLBeaconRegion *beaconRegion = [CCHBeaconService regionForBeacon:beacon];
} else {
NSLog(@"Could not get beacon from ContextHub");
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment