Skip to content

Instantly share code, notes, and snippets.

@MrCrambo
Created May 24, 2020 17:41
Show Gist options
  • Save MrCrambo/071059596f711226896de1f9a554401d to your computer and use it in GitHub Desktop.
Save MrCrambo/071059596f711226896de1f9a554401d to your computer and use it in GitHub Desktop.
/*
For BLUETOOTH scans.
Create CBCentralManager class element and call its method for scanning Bluetooth devices.
Here is the function declaration
*/
func scanForPeripherals(withServices serviceUUIDs: [CBUUID]?, options: [String : Any]? = nil)
/*
For BEACONS scan.
Create CLLocationManager class element and call its method for ranging Beacons.
Here is the function declaration
*/
func startRangingBeacons(satisfying constraint: CLBeaconIdentityConstraint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment