Bean-iOS-OSX-SDK
Bean-iOS-OSX-SDK copied to clipboard
Connect to Bean without rescanning
With CoreBluetooth I can save peripheral identifier, and later – even after app restarts – can use that identifier to get CBPeripheral in
let peripheral = centralManager.retrievePeripherals(withIdentifiers: [identifier]) .first!
Then proceed with the retrieved peripheral as usual:
centralManager.connect(peripheral, options: nil)
Here is a project demonstrating this: https://github.com/paiv/btpage
Currently this is not possible with PTDBeanManager since every operation checks against internal list of beanRecords discovered.
What is your suggested workaround for an app to store known peripheral identifier and then connect to that peripheral by its identifier?