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

Overwrite connection #820

Open
Laurin08 opened this issue Dec 24, 2024 · 1 comment
Open

Overwrite connection #820

Laurin08 opened this issue Dec 24, 2024 · 1 comment

Comments

@Laurin08
Copy link

Hi
I used the nimBLE library with the ESP32-BLE-CompositeHID to emulate a controller for flipping Anki flash cards. That worked fine very nice libraries!!
But since im using Anki on my Mac and the iPad I would like to switch the device. For now I have to turn off bluetooth on the device im working on and then I can connect with the other. It works, but it would be perfect if I could just click connect on for example the iPad and then it disconnects from the MacBooks and switches to the iPad. (same principle as the UE booms). I hope my explanation was understandable.
Has anyone an idea how to code that?

Thank you

@h2zero
Copy link
Owner

h2zero commented Dec 24, 2024

No easy way to do that. If the device is already connected you would need to either disconnect and advertise so the other device can connect or start advertising after connecting to allow multiple connections.

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

2 participants