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

Connecting to same device as both client & server for ANCS #713

Open
mathcampbell opened this issue Aug 27, 2024 · 1 comment
Open

Connecting to same device as both client & server for ANCS #713

mathcampbell opened this issue Aug 27, 2024 · 1 comment

Comments

@mathcampbell
Copy link

hey there; I'm trying to implement an ANCS (Apple Notification Centre Service) using NimBLE - I'm having real trouble though because it needs you to make a server on your device, solicit the UUID for ANCS, connect the iOS device ("phone" to save me typing device constantly) as a client, authenticate etc, then create a client and connect the phone as a server, at the same time.

I have built my code virtually mirroring an implementation of ANCS for arduino built on bluedroid, but as soon as I try to connect the client it spits out "E NimBLEClient: A connection to xx:xx:xx:xx:xx:xx already exists" (and there isn't a client connection; it's the NimBLEServer connection to the phone).
I know the hardware can manage it etc; anyone care to help me out where I'm going wrong?

@h2zero
Copy link
Owner

h2zero commented Aug 29, 2024

Hi, the master branch has added this capability by creating a client and then assigning the connection handle to it.
See commit: 6db0368

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