Skip to content

Commit

Permalink
Revert "fix broken start/stop scanning calls and sample"
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgyoung authored Apr 5, 2019
1 parent 0082b9c commit d757aed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ios-beacon-tools/RNLBeaconScanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

+ (instancetype) sharedBeaconScanner;

- (void) startScanningAltbeacons;
- (void) stopScanningAltbeacons;
- (void) startScanning;
- (void) stopScanning;
- (NSNumber *) calibratedRSSIFor: (RNLBeacon *)beacon;
- (NSArray *) trackedBeacons;

Expand Down
4 changes: 2 additions & 2 deletions ios-beacon-tools/RNLBeaconScanner.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ - (instancetype) init {

self.beaconTracker = [[RNLBeaconTracker alloc] init];

[self startScanningAltbeacons];
[self startScanning];
return self;
}
- (void) dealloc {
[self stopScanningAltbeacons];
[self stopScanning];
}

- (void)startScanning {
Expand Down
2 changes: 1 addition & 1 deletion sample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Sample {
var scanner: RNLBeaconScanner?
func sample() {
scanner = RNLBeaconScanner.shared()
scanner?.startScanningAltbeacons()
scanner?.startScanning()

// Execute this code periodically (every second or so) to view the beacons detected
if let detectedBeacons = scanner?.trackedBeacons() as? [RNLBeacon] {
Expand Down

0 comments on commit d757aed

Please sign in to comment.