Skip to content

Commit

Permalink
add further logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrya committed Sep 6, 2020
1 parent f01e764 commit eeef0d0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,14 @@ public interface DialogCallback {
private class ScanCallback implements RangeNotifier {
@Override
public void didRangeBeaconsInRegion(Collection<Beacon> beacons, Region region) {
HyperLog.v(TAG, "Got callback from beacon scan for region " + region);
for (Beacon beacon : beacons) {
if (beacon != null) {
if (beacon.getBluetoothName() != null && beacon.getBluetoothAddress() != null) {
HyperLog.d(TAG, "Found beacon " + beacon);
adapter.addBeacon(beacon);
} else {
HyperLog.d(TAG, "Beacon " + beacon + " is not complete: " + beacon.getBluetoothName() + "/" + beacon.getBluetoothAddress());
HyperLog.d(TAG, "Beacon " + beacon + " is incomplete: " + beacon.getBluetoothName() + "/" + beacon.getBluetoothAddress());
}
}
}
Expand Down

0 comments on commit eeef0d0

Please sign in to comment.