Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ryanjjones10/06010f76670f754f7362f229d1f100d1 to your computer and use it in GitHub Desktop.

Select an option

Save ryanjjones10/06010f76670f754f7362f229d1f100d1 to your computer and use it in GitHub Desktop.
import CoreBluetooth
import UIKit
class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralDelegate {
var centralManager: CBCentralManager!
var peripheral: CBPeripheral!
override func viewDidLoad() {
super.viewDidLoad()
self.startManager()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func startManager(){
centralManager = CBCentralManager(delegate: self, queue: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment