Skip to content

Instantly share code, notes, and snippets.

@ryanjjones10
Created June 29, 2016 22:46
Show Gist options
  • Select an option

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

Select an option

Save ryanjjones10/bec36b4b867e8194749f69133a6eec78 to your computer and use it in GitHub Desktop.
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