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
zxzxwu
f1058e4d4e
Merge pull request #859 from istemon/att-read-by-type-request-fix
...
Return 'invalid handle' for malformed read by type request
2026-01-16 15:09:20 +08:00
zxzxwu
6966228d74
Merge pull request #863 from zxzxwu/eatt-mtu
...
Correct ATT_MTU in enhanced bearers
2026-01-16 15:08:12 +08:00
Josh Wu
f7364db992
Correct ATT_MTU in enhanced bearers
2026-01-12 21:03:14 +08:00
Josh Wu
0fb2b3bd66
GATT: Support Multiple Requests
2026-01-12 20:51:38 +08:00
Istemon
61a601e6e2
Return 'invalid handle' for malformed read by type request
2026-01-10 01:43:30 +00:00
Josh Wu
4c3746a5b2
Fix some typos and annotations
2026-01-05 23:53:22 +08:00
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
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
17563e423a
Migrate ATT PDU to dataclasses
2025-08-12 12:37:29 +08:00
Josh Wu
8a0cd5d0d1
Replace deprecated typing aliases
2025-06-07 23:39:35 +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
55801bc2ca
Make all event emitters async
...
* Also remove AbortableEventEmitter
2025-04-16 12:40:57 +08:00
Gilles Boccon-Gibod
da029a1749
new adapter classes
2025-02-16 16:26:13 -08: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
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
William Escande
00e660d410
Implement Hap support ( #532 )
...
* Implement Hap
2024-09-09 16:24:22 -07:00
Josh Wu
8051c23375
Return ATT_Error_Response on rejected write
2024-09-08 01:12:51 +08:00
Gilles Boccon-Gibod
58d4ab913a
update black formatter to version 24
2024-04-01 14:44:46 -07:00
Gilles Boccon-Gibod
8d2f37aa7a
inclusive language
2024-01-28 19:09:39 -08:00
Gilles Boccon-Gibod
f2925ca647
support async read/write for characteristic values
2023-12-27 11:52:22 -08:00
Josh Wu
3575f9030e
Add Audio Stream Control Service
2023-12-08 09:53:14 +08:00
Josh Wu
e559744f32
Typing att
2023-09-21 15:52:07 +08:00
Josh Wu
8d09693654
Implement GATT server included service declaration
2023-05-09 00:59:22 +08:00
Alan Rosenthal
fb49a87494
Create Characteristic.Property
...
Move all Characteristic properties into its own `enum.IntFlag` class
2023-03-31 16:09:24 -04:00
Alan Rosenthal
e026de295f
Add show local-values
...
This PR adds a way to display the local gatt characteristics/descriptors values
If no connections, it shows the value of every characteristic/descriptor.
When there's a connection, it shows the value for each specific connection - CCCDs are connection specific
This screen auto-updates every second
2023-03-31 00:20:07 +00:00
Gilles Boccon-Gibod
1efa2e9d44
add benchmark tool and doc
2023-03-20 18:25:21 -07:00
Rahul Arya
08a6f4fa49
Add support for ATT permissions on server-side
2023-03-03 16:11:33 -08:00
uael
d21da78aa3
overall: host a minimal copy of ainsicolors
2023-02-23 20:53:06 +00:00
uael
b731f6f556
overall: add types hints to the small subset used by avatar
2023-02-02 19:37:55 +00:00
Gilles Boccon-Gibod
c2959dadb4
formatting and linting automation
...
Squashed commits:
[cd479ba] formatting and linting automation
[7fbfabb] formatting and linting automation
[c4f9505] fix after rebase
[f506ad4] rename job
[441d517] update doc (+7 squashed commits)
[2e1b416] fix invoke and github action
[6ae5bb4] doc for git blame
[44b5461] add GitHub action
[b07474f] add docs
[4cd9a6f] more linter fixes
[db71901] wip
[540dc88] wip
2022-12-15 23:07:17 -08:00
Gilles Boccon-Gibod
135df0dcc0
format with Black
2022-12-10 09:40:12 -08:00
Gilles Boccon-Gibod
297246fa4c
Merge pull request #92 from yuyangh/yuyangh/add_ASHA_GATT
...
add ASHA profile
2022-12-07 13:16:01 -08:00
Yuyang Huang
52db1cfcc1
improve code style
2022-12-06 07:38:05 -08:00
Yuyang Huang
29f9a79502
improve get service advertising data
2022-12-05 11:22:07 -08:00
Gilles Boccon-Gibod
f41d0682b2
Merge pull request #80 from AlanRosenthal/alan/gatt_server_getter
...
Added class CharacteristicDeclaration, gatt_server getters
2022-11-28 19:21:08 -08:00
Alan Rosenthal
f56ac14f2c
Add bumble-console --device-config support for gatt services
...
This PR adds support for bumble-console to be preloaded with gatt services via `--device-config`.
This PR also adds some type annotations
2022-11-28 14:11:27 -05:00
Alan Rosenthal
b89f9030a0
Added class CharacteristicDeclaration, gatt_server getters
...
* Converted CharacteristicDeclaration implementation to class
* Added ability to get a gatt_server attribute by service UUID, characteristics UUID, descriptor UUID
2022-11-27 19:22:25 +00:00
Gilles Boccon-Gibod
edcb7d05d6
fix merge conflict
2022-11-07 16:51:40 -08:00
Gilles Boccon-Gibod
ce9004f0ac
Add L2CAP CoC support (squashed)
...
[85542e0] fix test
[3748781] add ASAH sink example
[e782e29] add app
[83daa30] wip
[7f138a0] add test
[f732108] allow different address syntax
[9d0bbf8] rename deprecated methods
[eb303d5] add LE CoC support
2022-11-07 16:45:37 -08:00
Gilles Boccon-Gibod
20dedbd923
maintain the att mtu only at the connection level
2022-10-04 20:04:43 -07:00
Gilles Boccon-Gibod
80569bc9f3
add support for notifying with a transient value
2022-09-06 12:42:35 -07:00
Gilles Boccon-Gibod
3fa5d320de
add long read self test
2022-08-03 16:19:04 -07:00
Gilles Boccon-Gibod
6ac91f7dec
initial import
2022-05-16 19:42:31 -07:00