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

Implement (G)ATT on top of L2CAP #29

Open
jonas-schievink opened this issue Mar 31, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@jonas-schievink
Copy link
Owner

commented Mar 31, 2019

GATT is not it's own protocol, but means Generic Attribute Profile (even though the spec sometimes calls it Generic Attribute Protocol - I'm not making this shit up!). We have to implement whatever parts of ATT are needed by GATT.

@jonas-schievink jonas-schievink added this to the Oxidize milestone Mar 31, 2019

@jonas-schievink jonas-schievink changed the title Implement the attribute protocol (ATT) on top of L2CAP Implement enough of (G)ATT on top of L2CAP Apr 1, 2019

@jonas-schievink jonas-schievink referenced this issue Apr 2, 2019

Open

Implement the mandatory L2CAP parts #37

0 of 3 tasks complete
@jonas-schievink

This comment has been minimized.

Copy link
Owner Author

commented Apr 15, 2019

A hard-coded primary service is now enumerated correctly. Next steps:

  • ATT needs to call into GATT to figure some things out because BLE is a giant protocol layering violation
  • An interface for exposing and defining Services and Characteristics needs to be created. Currently we just operate off of a slice of raw attributes. We need a better interfacing trait and possibly proc macros to make this simpler.
  • Figure out how to do notification/indication of changed attribute values

@jonas-schievink jonas-schievink removed this from the Oxidize milestone Apr 26, 2019

@jonas-schievink

This comment has been minimized.

Copy link
Owner Author

commented Apr 26, 2019

Removing milestone since service enumeration with one hard-coded service now works.

@jonas-schievink jonas-schievink changed the title Implement enough of (G)ATT on top of L2CAP Implement (G)ATT on top of L2CAP Jun 13, 2019

@chocol4te

This comment has been minimized.

Copy link
Collaborator

commented Jun 19, 2019

I've been using NimBLE for a few days, and think implementing a similar pattern for notifications would be a good idea, I'm going to start work on this over the next couple days and see where I get.

NimBLE ble_gap.h

NimBLE ble_gatt.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.