Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to Bean without rescanning #31

Open
paiv opened this issue Apr 20, 2017 · 0 comments
Open

Connect to Bean without rescanning #31

paiv opened this issue Apr 20, 2017 · 0 comments

Comments

@paiv
Copy link

paiv commented Apr 20, 2017

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 added a commit to paiv/Bean-iOS-OSX-SDK that referenced this issue Apr 20, 2017
paiv added a commit to paiv/Bean-iOS-OSX-SDK that referenced this issue Apr 20, 2017
pull bot pushed a commit to nazt/Bean-iOS-OSX-SDK that referenced this issue Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant