Created
August 11, 2014 19:52
-
-
Save CHLibrarian/40cb8d5346a7773b0daa to your computer and use it in GitHub Desktop.
ContextHub Element Services Beacon Retrieve ID Gist
This file contains hidden or 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
| // 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