From d757aede2be7a72518bf27d0717cc30337d70d46 Mon Sep 17 00:00:00 2001 From: "David G. Young" Date: Fri, 5 Apr 2019 08:18:54 -0600 Subject: [PATCH] Revert "fix broken start/stop scanning calls and sample" --- ios-beacon-tools/RNLBeaconScanner.h | 4 ++-- ios-beacon-tools/RNLBeaconScanner.m | 4 ++-- sample.swift | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ios-beacon-tools/RNLBeaconScanner.h b/ios-beacon-tools/RNLBeaconScanner.h index 6e62881..abcef51 100644 --- a/ios-beacon-tools/RNLBeaconScanner.h +++ b/ios-beacon-tools/RNLBeaconScanner.h @@ -31,8 +31,8 @@ + (instancetype) sharedBeaconScanner; -- (void) startScanningAltbeacons; -- (void) stopScanningAltbeacons; +- (void) startScanning; +- (void) stopScanning; - (NSNumber *) calibratedRSSIFor: (RNLBeacon *)beacon; - (NSArray *) trackedBeacons; diff --git a/ios-beacon-tools/RNLBeaconScanner.m b/ios-beacon-tools/RNLBeaconScanner.m index 9beb930..a1ff906 100755 --- a/ios-beacon-tools/RNLBeaconScanner.m +++ b/ios-beacon-tools/RNLBeaconScanner.m @@ -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 { diff --git a/sample.swift b/sample.swift index 206528f..7e12e42 100644 --- a/sample.swift +++ b/sample.swift @@ -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] {