Bean-iOS-OSX-SDK icon indicating copy to clipboard operation
Bean-iOS-OSX-SDK copied to clipboard

Connect to Bean without rescanning

Open paiv opened this issue 9 years ago • 0 comments

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?

paiv avatar Apr 20 '17 11:04 paiv