alexmoon / bluest

Cross-platform Rust crate for working with Bluetooth Low Energy devices.
Apache License 2.0
55 stars 8 forks source link

L2CAP support #3

Open jmagnuson opened 1 year ago

jmagnuson commented 1 year ago

For Linux, bluer already offers a great L2CAP module that could be stubbed. For iOS, @akiles started work doing this in their own bluest fork but never submitted PR. Windows also does appear to have support for L2CAP, but I haven't dug into windows-rs enough to know how seamless it would be.

alexmoon commented 1 year ago

I'd be happy to accept a PR for L2CAP support. When I last looked at it I couldn't find a userspace API for L2CAP on Windows (there is a kernel API for it, but it's not exposed to userland). However, I'd be open to supporting L2CAP on just Linux and CoreBluetooth if Windows doesn't support it.