-
-
Notifications
You must be signed in to change notification settings - Fork 284
CurieBLE: discovering attributes of connect central fails #382
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
Comments
I thought that discoverAttributes works only in central mode and not meant for the peripheral to discover central. I am also adding @sgbihu to this and hope he answers. I am still on vacation. |
It looks like I cannot assign @sgbihu . @eriknyquist can you send him an email to look into this |
This is a bug. The program doesn't add the connected central to the profile buffer. And that makes discover failed. The discover can't find it in the buffer. The current code only consider the connected peripheral device. |
Hi @sandeepmistry , You can get the fix from https://github.com/sgbihu/corelibs-arduino101. The commit is a8c834a. Thanks! |
Please note Jira ticket, 788, has been created. A solution has been created for internal review, approval, and testing. Upon the completion of that process, the solution will be merged to the master, will be in the nightly JSON build, and will post the status here. |
Tested and works accordingly. |
@noelpaz was the fix for this merged into master? |
This was addressed in #410 |
PR #410 addresses this issue. |
I'm still seeing this issue with the sketch from #382 (comment) and my Mac running macOS 10.12.3. The Serial monitor displays the following when I connect from LightBlue on my Mac:
Here's a screenshot from the PacketLogger app, I don't see any incoming attribute discovery requests either: |
Hi @sandeepmistry , So I want to confirm your does your light blue has profiles? Please tell me the setups if you have. And does iPhone's light blue has same results? I don't have MAC OS to duplicate this issue. It's better we can do on IOS. Thanks! |
I tried this again today with Github master and the 2.0.1 RC JSON. The sketch I provided works with both macOS and iOS. Not exactly sure why it was failing yesterday, it could be that the GATT server on the Mac had too many attributes like #479 (comment). I'll close this for now, and re-open if I see it again. |
When running the following sketch, and connecting from LightBlue on my Mac, discovering attributes of the connected central fails:
The text was updated successfully, but these errors were encountered: