Created
June 29, 2016 22:46
-
-
Save ryanjjones10/bec36b4b867e8194749f69133a6eec78 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
| func centralManagerDidUpdateState(central: CBCentralManager) { | |
| if (central.state == CBCentralManagerState.PoweredOn) { | |
| self.centralManager?.scanForPeripheralsWithServices(nil, options: nil) | |
| self.currentState.text = "Scanning" | |
| } else { | |
| print("BLE not on") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment