Skip to content

feat: add L2CAP support#2

Merged
deadprogram merged 2 commits into
tinygo-org:masterfrom
acouvreur:add-l2cap-support
Apr 4, 2026
Merged

feat: add L2CAP support#2
deadprogram merged 2 commits into
tinygo-org:masterfrom
acouvreur:add-l2cap-support

Conversation

@acouvreur

@acouvreur acouvreur commented Apr 2, 2026

Copy link
Copy Markdown
Member

Add support for L2CAP APIs from CoreBluetooth.

Those APIs were introduced in macOS 10.13+ so it is still within bounds of the supported APIs described in the README.


Context: I'm implementing OTS which uses L2CAP to transfer objects.

I've added l2cap support here, and used it in a modified version of the bluetooth library and could successfully transfer data over an L2CAP channel.

I will create the pull request to the bluetooth repository once this is merged.


Important: I've used Claude through GitHub Copilot to help me create these changes. I've carefully reviewed and understood every piece of produced code. However, I'm not an Objective-C developer, so I don't know if it misses something. So far everything looks good and simple to me.

@acouvreur
acouvreur marked this pull request as draft April 2, 2026 18:41
@acouvreur
acouvreur marked this pull request as ready for review April 2, 2026 21:56
@deadprogram

Copy link
Copy Markdown
Member

I've added l2cap support here, and used it in a modified version of the bluetooth library and could successfully transfer data over an L2CAP channel.

That is the best testing we can do at this point, probably. Now squash/merging, thanks for working on this @acouvreur

@deadprogram
deadprogram merged commit 78b73a9 into tinygo-org:master Apr 4, 2026
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

Successfully merging this pull request may close these issues.

2 participants