Created
June 30, 2016 00:58
-
-
Save ryanjjones10/f6a306f891f98faa4367bd1a1cd4970b 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 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