feat: support ble l2cap connections - #1808
Conversation
942cf4f to
505720a
Compare
PR Review — feat: support ble l2cap connectionsPromising early draft of BLE/L2CAP transport, but not mergeable — an import-time crash affecting all platforms, a log-name regression that hits TCP too, and frame truncation that corrupts the protocol. What's solid: the transport abstraction is the right shape — extracting an abstract
🔴 Blocking
1. `ctypes.util` is used but never imported — breaks importing the whole package
|
esphbot
left a comment
There was a problem hiding this comment.
Blocking issues found.
ctypes.utilis used but never imported — breaks importing the whole packagebuild_log_namenow receives a single string instead of a list — corrupts log names for TCP and BLEL2CAPSocket.sendsilently truncates frames to the MTU — corrupts the wire protocol- State-machine invariant commented out in
start_connection except BaseExceptionin BLE connect wraps CancelledError into SocketAPIError- Debug harness
main.pycommitted to repo root with a hardcoded PSK - Reliance on private asyncio APIs (
_create_connection_transport,_create_connection_transport)
9f9f410 to
5bdcd51
Compare
5caf1d5 to
56e0f76
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1808 +/- ##
===========================================
- Coverage 100.00% 98.04% -1.96%
===========================================
Files 26 26
Lines 4204 4347 +143
===========================================
+ Hits 4204 4262 +58
- Misses 0 85 +85 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What does this implement/fix?
https://github.com/orgs/esphome/discussions/3607
early draft ...
Types of changes
Related issue or feature (if applicable):
Pull request in esphome:
Checklist:
tests/folder).