Skip to content

Instantly share code, notes, and snippets.

@ryanjjones10
Created June 30, 2016 00:58
Show Gist options
  • Save ryanjjones10/f6a306f891f98faa4367bd1a1cd4970b to your computer and use it in GitHub Desktop.
Save ryanjjones10/f6a306f891f98faa4367bd1a1cd4970b to your computer and use it in GitHub Desktop.
func centralManager(central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: NSError?){
if self.peripheral != nil {
self.peripheral.delegate = nil
self.peripheral = nil
}
print("did disconnect", error)
self.startManager()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment