Skip to content

Commit 0082b9c

Browse files
authored
Merge pull request #4 from LeviDahl/master
fix broken start/stop scanning calls and sample
2 parents 2491da8 + 29783cb commit 0082b9c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ios-beacon-tools/RNLBeaconScanner.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232
+ (instancetype) sharedBeaconScanner;
3333

34-
- (void) startScanning;
35-
- (void) stopScanning;
34+
- (void) startScanningAltbeacons;
35+
- (void) stopScanningAltbeacons;
3636
- (NSNumber *) calibratedRSSIFor: (RNLBeacon *)beacon;
3737
- (NSArray *) trackedBeacons;
3838

ios-beacon-tools/RNLBeaconScanner.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ - (instancetype) init {
6767

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

70-
[self startScanning];
70+
[self startScanningAltbeacons];
7171
return self;
7272
}
7373
- (void) dealloc {
74-
[self stopScanning];
74+
[self stopScanningAltbeacons];
7575
}
7676

7777
- (void)startScanning {

sample.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Sample {
1212
var scanner: RNLBeaconScanner?
1313
func sample() {
1414
scanner = RNLBeaconScanner.shared()
15-
scanner?.startScanning()
15+
scanner?.startScanningAltbeacons()
1616

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

0 commit comments

Comments
 (0)