Created
July 24, 2016 21:07
-
-
Save ryanjjones10/06010f76670f754f7362f229d1f100d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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