yanshouwang / bluetooth_low_energy

A Flutter plugin for controlling the bluetooth low energy.
https://pub.dev/packages/bluetooth_low_energy
MIT License
49 stars 16 forks source link

Support L2CAP #68

Open sampaioletti opened 5 months ago

sampaioletti commented 5 months ago

Would it be within the scope of this lib to support L2CAP communication? Looking into it for a prototype we are working on.

https://www.bluetooth.com/wp-content/uploads/Files/Specification/HTML/Core-54/out/en/host/logical-link-control-and-adaptation-protocol-specification.html

If it is, but not currently being looked at I'll try playing around with it and if successful I'll try and add a PR

yanshouwang commented 5 months ago

I am not familiar with the L2CAP, it's great if you can implement this, just feel free to pull a new request. I know this is supported on Android and iOS. Is it possible to be implemented on Windows and Linux?

sampaioletti commented 5 months ago

Technically I believe it's available on all platforms as it's just a couple layers down from GATT

But I'm just getting familiar with it as well. We have a protocol we are porting over from tcp and have 'mimicked' stream communication using standard GATT but appears that this will reduce some of the overhead/limitations of doing so.

image

pdalfarr commented 4 months ago

Maybe this could help https://github.com/appsfactorygmbh/flutter-l2cap ?

yanshouwang commented 4 months ago

Maybe this could help https://github.com/appsfactorygmbh/flutter-l2cap ?

It's will be great if someone can contribute this feature to this plugin. I don't have much time to learn about the L2CAP at this moment.

I'm afraid this will be a long term goal if nobody want to help me with this, maybe v7.x or v8.x :sweat_smile:

pdalfarr commented 4 months ago

Yep.

Keep focusing on the main goal of your project seems better indeed 😉

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.