Josh Wu
df697c6513
Add EATT Support
2026-01-04 21:51:50 +08:00
Josh Wu
3f643de4c1
Ruff: Add and fix UP rules
2026-01-01 03:25:32 +08:00
Gilles Boccon-Gibod
8e28f4e159
Merge pull request #845 from google/gbg/ruff
...
use ruff for linting and import sorting
2025-12-30 11:38:48 -08:00
Gilles Boccon-Gibod
4fb501a0ef
use ruff for linting and import sorting
2025-12-29 19:28:45 -08:00
Josh Wu
618e977f20
L2CAP: Enhanced Credit-based Flow Control Mode
2025-12-23 19:51:55 +08:00
Josh Wu
456cb59b48
L2CAP: FCS Implementation
2025-12-01 16:10:45 +08:00
Josh Wu
57e05781ad
L2CAP: Enhanced Retransmission Mode
2025-11-24 16:17:11 +08:00
Sigurd Ljødal
7292c2785e
Cancel l2cap connection result future on abort
...
This cancels the `connection_result` future of LeCreditBasedChannel when
abort() is called, e.g. if the LE connection disconnects. This makes it
possible for code waiting for a connection to open to detect that the
connection has failed.
Fixes google/bumble#825
2025-11-14 14:52:09 +01:00
Josh Wu
6091e6365d
Remove depreacated L2CAP APIs
2025-08-27 14:15:08 +08:00
Gilles Boccon-Gibod
7aba36302a
use isort when formatting
2025-08-21 16:38:58 -07:00
Josh Wu
4a88e9a0cf
Always log exception using logging.exception
2025-08-18 16:03:58 +08:00
Josh Wu
f41b7746d2
Add L2CAP credit based packets definitions
2025-08-13 11:59:24 +08:00
Josh Wu
822f97fa84
Fix L2CAP errors
2025-07-30 12:00:20 +08:00
Josh Wu
858788f05e
Migrate L2CAP packets to dataclasses
2025-07-20 18:30:02 +08:00
Gilles Boccon-Gibod
8137caf37b
use cancel_on_disconnection helper
2025-06-10 13:28:08 -04:00
Josh Wu
8a0cd5d0d1
Replace deprecated typing aliases
2025-06-07 23:39:35 +08:00
Josh Wu
22d6a7bf05
Declare emitted events as constants
2025-04-26 03:55:31 +08:00
Josh Wu
55801bc2ca
Make all event emitters async
...
* Also remove AbortableEventEmitter
2025-04-16 12:40:57 +08:00
Josh Wu
a57cf13e2e
Cleanup relative imports
2025-04-12 23:06:52 +08:00
Damien Merenne
685f1dc43e
Fix L2CAP signaling packet identifiers
...
According to the Bluetooth Core Spec, Volume 3, Part A, Section 4, 0x00 is an invalid identifier:
4. Signaling packet formats
...
Identifier (1 octet)
... Signaling identifier 0x00 is an invalid identifier and shall never be used in any command.
2025-04-08 14:37:02 +00:00
Josh Wu
637224d5bc
Enum: PhysicalTransport, Role, AddressType
2025-03-09 23:34:01 +08:00
Gilles Boccon-Gibod
55eb7eb237
enforce MTU limits
2025-01-21 10:31:10 -05:00
Gilles Boccon-Gibod
9d3d5495ce
only use __bytes__ when not argument is needed.
2024-11-23 15:56:14 -08:00
Gilles Boccon-Gibod
a00abd65b3
fix some linter warnings
2024-10-28 12:30:37 -07:00
zxzxwu
5aae44b610
Merge pull request #501 from zxzxwu/exception
...
Reorganize exceptions
2024-07-12 15:44:58 +08:00
Josh Wu
f8a2d4f0e0
Reorganize exceptions
...
* Add BaseBumbleException as a "real" root error
* Add several core error classes and properly replace builtin errors
with them
* Add several error classes for specific modules (transport, device)
2024-06-11 16:13:08 +08:00
Gilles Boccon-Gibod
f5baf51132
improve DLC parameters
2024-06-03 18:11:13 -07:00
Gilles Boccon-Gibod
f2dc8bd84e
wip (+2 squashed commits)
...
Squashed commits:
[451a295] wip
[ed7b5b6] wip (+1 squashed commit)
Squashed commits:
[9d938c8] wip
wip
wip
2024-05-30 14:59:22 -07:00
Gilles Boccon-Gibod
a877283360
add rfcomm options and fix l2cap mtu negotiation
2024-02-05 08:56:59 -08:00
Gilles Boccon-Gibod
8d2f37aa7a
inclusive language
2024-01-28 19:09:39 -08:00
Gilles Boccon-Gibod
8980fb8cc7
add drain support and a few tool options
2024-01-02 11:07:52 -08:00
Gilles Boccon-Gibod
47fe93a148
support per-transport ACL queues
2023-12-22 13:52:33 -08:00
Josh Wu
10a3833893
Remove # type: ignore[call-arg] in HCI_Command builders
2023-12-02 19:18:54 +08:00
Josh Wu
f3cd8f8ed0
Typing helper
2023-11-29 21:24:27 +08:00
Josh Wu
5a85765360
Cleanup legacy L2CAP API
2023-10-11 14:33:44 +08:00
Josh Wu
e732f2589f
Refactor L2CAP API
2023-10-07 20:01:15 +08:00
Josh Wu
5d9598ea51
L2CAP: Refactor states to enums
2023-09-14 20:52:33 +08:00
zxzxwu
4ed5bb5a9e
Merge pull request #281 from zxzxwu/cleanup-transport
...
Replace | typing usage with Optional and Union
2023-09-13 13:31:41 +08:00
William Escande
783b2d70a5
Add connection parameter update from peripheral
2023-09-12 11:08:04 -07:00
Josh Wu
f39f5f531c
Replace | typing usage with Optional and Union
2023-09-12 15:50:51 +08:00
Hui Peng
acdbc4d7b9
Raise an exception when an L2cap connection fails
2023-09-07 19:24:38 +02:00
Josh Wu
249a205d8e
Typing packet transmission flow
2023-08-30 01:47:46 +08:00
Gilles Boccon-Gibod
648dcc9305
use type object instead of type strings
2023-07-27 13:19:37 -07:00
Josh Wu
190529184e
L2CAP: Import device.Connection for typing
2023-07-27 09:07:55 -07:00
Josh Wu
46eb81466d
Add more argement hints in L2CAP
2023-07-27 09:07:55 -07:00
Josh Wu
9c70c487b9
Add type hint to L2CAP module
2023-07-27 09:07:55 -07:00
Gilles Boccon-Gibod
1efa2e9d44
add benchmark tool and doc
2023-03-20 18:25:21 -07:00
uael
d21da78aa3
overall: host a minimal copy of ainsicolors
2023-02-23 20:53:06 +00:00
Gilles Boccon-Gibod
f1686d8a9a
fix typo in constant name
2023-01-22 19:10:13 -08:00
Gilles Boccon-Gibod
99758e4b7d
add basic support for mypy type checking
2023-01-20 00:20:50 -08:00