Commit Graph

304 Commits

Author SHA1 Message Date
Josh Wu b18555539e Type some optional attributes 2026-05-06 17:16:40 +08:00
David Lechner baa5257780 improve type hints for notify/indicate subscriber(s) methods
Pyright expects generic type parameters to be specified for the
Attribute class, otherwise it treats the type as Unknown which can
trigger reportUnknownMemberType errors.

This can be solved by using a generic type parameter for these methods
which also has the benefit of making sure that the value parameter has
the correct type for the attribute.

In some cases, a new local `value_as_bytes` variable is needed to avoid
type errors and makes the code less confusing by not overwriting the
original `value` variable.
2026-04-26 09:43:40 -05:00
Markus Jellitsch 85f6b10983 run formatter 2026-04-03 23:06:24 +02:00
Markus Jellitsch ee09e6f10d add smp_debug_mode config flag to enable debug keys during device init 2026-04-03 23:03:51 +02:00
Josh Wu 0ba9e5c317 Add read classic remote features support 2026-03-20 18:32:52 +08:00
Gilles Boccon-Gibod dcb8a4b607 Merge pull request #877 from google/gbg/hci-fixes
fix a few HCI types and make the bridge more robust
2026-02-02 11:19:28 -08:00
Gilles Boccon-Gibod 81985c47a9 remove superfluous statement 2026-02-02 11:12:28 -08:00
Gilles Boccon-Gibod 5dc01d792a address PR comments 2026-01-31 10:55:58 -08:00
Gilles Boccon-Gibod 255f357975 resolve when bonded 2026-01-30 21:53:01 -08:00
Gilles Boccon-Gibod 2a59e19283 fix comment 2026-01-29 19:09:46 -08:00
Gilles Boccon-Gibod e63dc15ede fix handling of return parameters 2026-01-27 09:39:22 -08:00
Gilles Boccon-Gibod c901e15666 fix a few HCI types and make the bridge more robust 2026-01-25 13:47:14 -08:00
Gilles Boccon-Gibod 85b78b46f8 Merge pull request #870 from antipatico/feat_AV53C1 2026-01-23 13:43:12 -08:00
Gilles Boccon-Gibod c577f17c99 add basic support for SCI 2026-01-20 15:32:55 -08:00
Gilles Boccon-Gibod 7e89c8a7f8 Merge pull request #868 from google/gbg/return-parameters
typing support for HCI commands return parameters
2026-01-19 09:49:15 -08:00
Gilles Boccon-Gibod 7523118581 typing surrport for HCI commands return parameters 2026-01-17 13:19:36 -08:00
Josh Wu 84a6453dda Fix GATT TemplateSerivce annotations 2026-01-15 12:06:05 +08:00
Josh Wu d2df76f6f4 Add test for Heart Rate and Battery Service 2026-01-08 16:42:05 +08:00
Josh Wu 4c3746a5b2 Fix some typos and annotations 2026-01-05 23:53:22 +08:00
zxzxwu 566ef967f4 Merge pull request #836 from zxzxwu/eatt
Add EATT Support
2026-01-05 22:26:17 +08:00
Josh Wu df697c6513 Add EATT Support 2026-01-04 21:51:50 +08:00
Gilles Boccon-Gibod 32bb7cdaf3 add support for multiple concurrent broadcasts 2026-01-01 18:24:03 -08:00
Josh Wu 3f643de4c1 Ruff: Add and fix UP rules 2026-01-01 03:25:32 +08:00
Gilles Boccon-Gibod 4fb501a0ef use ruff for linting and import sorting 2025-12-29 19:28:45 -08:00
Gilles Boccon-Gibod ad0753b959 Merge pull request #843 from dlech/type-hints
Fix missing type hints on Device.notify_subscribers()
2025-12-29 16:35:46 -08:00
David Lechner 5bbbe5e40f Remove unused imports
Mechanically remove unused imports with:

    ruff check --select F401 --fix --extend-exclude grpc_protobuf
2025-12-29 17:19:11 -06:00
David Lechner 793fcd750c Fix missing type hints on Device.notify_subscribers()
Add type hints for all arguments. Otherwise static checkers complain
when you try to use it.
2025-12-29 16:03:46 -06:00
zxzxwu e47cb5512c Merge pull request #779 from zxzxwu/l2cap
L2CAP Enhanced Retransmission mode
2025-12-03 21:57:48 +08:00
Josh Wu 456cb59b48 L2CAP: FCS Implementation 2025-12-01 16:10:45 +08:00
Josh Wu a84f0279b1 Refactor LE emulation with LL and Air Interface 2025-11-28 16:10:38 +08:00
Josh Wu 57e05781ad L2CAP: Enhanced Retransmission Mode 2025-11-24 16:17:11 +08:00
zxzxwu f000a3f30a Merge pull request #802 from zxzxwu/version
Upgrade Python version to 3.10-3.14
2025-11-07 23:22:07 +08:00
Josh Wu 4bee8d5287 Use EventWatcher and send_command(check_result=True) in all similar patterns 2025-11-07 00:37:57 +08:00
Josh Wu 5431941fe7 Upgrade Python version to 3.10-3.14 2025-11-05 04:45:05 +08:00
Z1 a11962a487 Minor fixes 2025-10-02 19:26:30 +00:00
markus 3d615b13ce fix accessing pending_cis dict 2025-09-26 12:38:38 +02:00
Markus Jellitsch 1ad92dc759 Update bumble/device.py
Co-authored-by: zxzxwu <92432172+zxzxwu@users.noreply.github.com>
2025-09-26 12:25:50 +02:00
markus aacfd4328c satisfy the linter, return None 2025-09-26 12:02:54 +02:00
markus 6aa1f5211c use local cis_link.handle to the pop the dict 2025-09-26 11:13:52 +02:00
markus df8e454ee5 pop cis link only when cis created successfully 2025-09-26 10:58:37 +02:00
Josh Wu 85215df2c3 Fix wrong with_connection_from_address parameter 2025-09-23 17:55:47 +08:00
Josh Wu 58debcd8bb Revert pending_connections 2025-09-19 12:32:28 +08:00
zxzxwu a25427305c Merge pull request #775 from khsiao-google/update
Remove the word 'complete' from function name
2025-09-17 13:18:37 +08:00
Josh Wu 83c5061700 Handle ISO data path race condition 2025-09-16 13:39:09 +08:00
khsiao-google b80b790dc1 Remove the word 'complete' from function name 2025-09-16 03:45:32 +00:00
khsiao-google dc93f32a9a Replace core.ConnectionParameters by Connection.Parameters in device.py 2025-09-08 02:00:49 +00:00
khsiao-google d903937a51 Merge branch 'main' into update 2025-09-01 07:14:19 +00:00
Gilles Boccon-Gibod 116dc9b319 add support for data type classes 2025-08-29 13:17:17 -07:00
Josh Wu 6091e6365d Remove depreacated L2CAP APIs 2025-08-27 14:15:08 +08:00
khsiao-google 3333ba472b Add typing for device.py 2025-08-26 09:22:06 +00:00