Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/caaef7caa751977ddd13 to your computer and use it in GitHub Desktop.
Save CHLibrarian/caaef7caa751977ddd13 to your computer and use it in GitHub Desktop.
ContextHub Element Services Beacon Retrieve ID (Android)
// Getting a beacon with a specific ID
BeaconProxy proxy = new BeaconProxy();
proxy.getBeacon(1000, new Callback<Beacon> {
@Override
public void onSuccess(Beacon result) {
Log.d(TAG, beacon.toString());
}
@Override
public void onFailure(Exception e) {
Log.d(TAG, e.getMessage());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment