Josh Wu
3d5648cdc3
Replace long if-else with match-case
2026-02-10 17:35:39 +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
91a2b4f676
Add annotation for Heart Rate and Battery Service
2026-01-08 14:43:27 +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
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
William Escande
8a5f6a61d5
HAP: wait for MTU to process reconnection event
...
When HAP reconnect, it sends indication of all events that happen during
the disconnection.
But it should wait for the profile to be ready and for the MTU to have
been negotiated or else the remote may not be ready yet.
As a side effect of this, the current GattServer doesn't re-populate the
handle of subscriber during a reconnection, we have to bypass this check
to send the notification
2025-09-16 16:18:16 -07:00
Josh Wu
613519f0b3
HAP: Slightly Pythonic refactor
...
* Add missing type annotations
* Avoid __value__ and _ arguments (this will be a problem for override).
* Replace while-pop with for loop
2025-09-05 21:02:16 +08:00
Gilles Boccon-Gibod
116dc9b319
add support for data type classes
2025-08-29 13:17:17 -07:00
Gilles Boccon-Gibod
7aba36302a
use isort when formatting
2025-08-21 16:38:58 -07:00
Josh Wu
f61fd64c0b
ASCS: Handle when CIS link is established before enable
2025-08-05 17:31:42 +08:00
Gilles Boccon-Gibod
bf8a2cdcb5
add discrete command methods
2025-07-26 20:24:55 -07:00
Gilles Boccon-Gibod
4bf7448a01
basic AMS implementation
2025-07-22 14:57:52 -07:00
Gilles Boccon-Gibod
43a8cc37f8
add iso support to bench app
2025-07-07 13:03:19 +02: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
zxzxwu
3a64772cc5
Merge pull request #688 from zxzxwu/hci2
...
Dataclass-based ASCS Packets
2025-06-05 20:59:06 +08:00
zxzxwu
1ecfb78d94
Dataclass-based packets
2025-06-05 20:44:31 +08:00
William Escande
9ad276a757
Implement optional synchronization for has ( #704 )
...
HAS can be run in synchronized mode, requiring a server to be able to
communicate with another CL.
This CL is doing a quick implementation of such functionality for preset
selection.
2025-06-02 14:57:59 -07:00
Josh Wu
a875aa4055
Fix wrong remove_data_path arguments
2025-05-21 16:01:29 +08:00
zxzxwu
84f7cad678
Replace Optional[Connection] att parameter type
2025-05-18 07:55:39 +00:00
Josh Wu
22d6a7bf05
Declare emitted events as constants
2025-04-26 03:55:31 +08:00
Josh Wu
5e9fc89f80
Add missing characteristic type parameters
2025-04-16 20:34:12 +08:00
Josh Wu
55801bc2ca
Make all event emitters async
...
* Also remove AbortableEventEmitter
2025-04-16 12:40:57 +08:00
Josh Wu
7569da37e4
Replace legacy transport and role constants
2025-04-09 19:04:02 +08:00
Gilles Boccon-Gibod
220b3b0236
Merge pull request #664 from google/gbg/auracast-broadcast-code
...
add broadcast code encoding
2025-03-20 14:33:05 -04:00
Gilles Boccon-Gibod
5e55c0e358
add broadcast code encoding
2025-03-17 19:56:02 -04:00
Gilles Boccon-Gibod
776bdae519
Initial support for ANCS client functionality
2025-03-12 15:44:13 -04:00
Gilles Boccon-Gibod
ed0eb912c5
Merge pull request #650 from google/gbg/gatt-adapter-typing
...
new GATT adapter classes with proper typing support
2025-02-23 18:06:16 -08:00
Josh Wu
bac6f5baaf
Fix mutable default values
2025-02-21 16:00:18 +08:00
Gilles Boccon-Gibod
da029a1749
new adapter classes
2025-02-16 16:26:13 -08:00
Gilles Boccon-Gibod
3f6f036270
Merge pull request #643 from google/gbg/auracast-audio-io
...
auracast audio io
2025-02-08 18:19:24 -05:00
Gilles Boccon-Gibod
33435c2980
better docs and GATT fixes
2025-02-06 15:48:39 -05:00
Gilles Boccon-Gibod
70141c0439
improvements
2025-02-03 17:58:09 -05:00
Gilles Boccon-Gibod
55d3fd90f5
wip
2025-01-25 21:04:59 -05:00
Josh Wu
1eb9d8d055
Support GATT Service
2025-01-15 02:13:25 +08:00
Josh Wu
27fcd43224
Unify ISO methods
2025-01-02 14:19:36 +08:00
Gilles Boccon-Gibod
62e4670a39
Merge pull request #606 from wpiet/gmap-wip
...
Add `Gaming Audio Profile`
2024-12-18 11:56:57 -05:00
Wojciech Pietraszewski
2552e21db1
Add characteristics initial values
...
Sets default values for characteristics if not specified explicitly
2024-12-04 17:00:29 +01:00
Wojciech Pietraszewski
6168f87e2f
Add characteristics conditionally
...
Only adds a characteristic if the corresponding role has been set
2024-12-04 12:57:34 +01:00
Gilles Boccon-Gibod
3ce7b9255b
Merge pull request #598 from google/gbg/gatt-class-adapter
...
Add a class-based GATT adapter
2024-12-03 08:46:30 -08:00
Wojciech Pietraszewski
19674e3758
Add Gaming Audio Profile
...
Adds initial support for `Gaming Audio Service`.
2024-12-02 11:15:10 +01:00
Gilles Boccon-Gibod
0a12b2bf2e
Merge pull request #585 from wpiet/vocs
...
Add `Volume Offset Control Service`
2024-11-29 10:41:30 -08:00
Gilles Boccon-Gibod
9d3d5495ce
only use __bytes__ when not argument is needed.
2024-11-23 15:56:14 -08:00
Gilles Boccon-Gibod
8715333706
Add a GATT adapter that uses from_bytes and __bytes__ as conversion methods.
2024-11-23 09:13:04 -08:00
Wojciech Pietraszewski
100bea6b41
Fix typos
...
Amends the typo in the `INACTIVE` field in `Audio Input Status` characteristic.
Amends the typo in the log message of `_set_gain_settings` method.
2024-11-21 18:29:44 +01:00
Wojciech Pietraszewski
63819bf9dd
Amend Opcode value in Audio Input Control Service
...
Corrects the Audio Input Control Point
Opcode value for `Set Gain Setting` field.
2024-11-21 16:40:49 +01:00
Wojciech Pietraszewski
6e55390930
Add Volume Offset Control Service
...
Adds initial support for VOCS.
2024-11-21 11:56:14 +01:00