Replies: 5 comments 2 replies
-
Very cool! It'd be great if you opened a PR. Depending on complexity of the changes, it could take a bit of time/discussion to get it in, but I try to prioritize PRs — so I'd do my best to help get that support integrated. Or, if the "exploratory work" is in its early stages, also happy to discuss API design and go over some of your code to see how we can get PRs up. |
Beta Was this translation helpful? Give feedback.
-
Client side only is fine. There have been other requests to have Kable act as a server (#51) but we don't internally have a need so I haven't been unable to prioritize it. It is fine if server implementations come later.
I don't have any experience with L2CAP at all, so unfortunately I won't be able to offer much guidance/help. I'll do my best to research and learn where needed to help though.
I'll have to see some code to get a better understanding of the hurdles you're facing, but chicken-and-egg type of problems felt quite common when building Kable.
Yikes, I had previously read about other delays needed w/ BLE code in Android. I'd like to avoid it, and only use delays as an absolute last resort (if we can't find a more elegant solution).
From a coroutines perspective, flow would be my go-to for a continuous stream of data, but I think there are more specialized solutions that might be better? I wonder if https://github.com/Kotlin/kotlinx-io might offer some nice solutions?
Is this typical? If there are use cases that leave it open (for multiple I/O operations) then we'd want to support longer lived sockets in Kable.
I like the simplicity of the
Ya, that'd be great, but I totally understand being busy. When you have a chance, I'll try to find some time to review it.
There isn't a contributor guide, but generally speaking, it is nice to have some discussion around API design at first. Not a prerequisite though, as some people like to jump right in to code. That is fine by me, if you're willing to potentially have a bit of churn on your PR. As for code style, the linter works pretty well with enforcing styles that I'm accustomed to.
Thank you!! |
Beta Was this translation helpful? Give feedback.
-
Not sure how feasible it would be (depends on how coupled the L2CAP needs to be to the existing BLE implementation in Kable) but if the L2CAP could be implemented as a separate module (maybe call it By being separate from This is all assuming that L2CAP is decoupled enough in Android. 🤞 |
Beta Was this translation helpful? Give feedback.
-
For sure, as long as it doesn't break existing functionality of the sample, then you're welcome to meld it to your needs. Alternatively, if it does break things, then the L2CAP samples could live on branch(es). 🤷 |
Beta Was this translation helpful? Give feedback.
-
@tonyage I am interested in L2CAP. Could you please share the details or a draft? |
Beta Was this translation helpful? Give feedback.
-
I did some exploratory work on my fork to support l2cap socket comms for android and IOS would there be any interest to get this upstreamed?
Beta Was this translation helpful? Give feedback.
All reactions