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
eba82b9d9a
Merge pull request #164 from AlanRosenthal/alan/local-write
...
Add `local-write` to bumble-console
2023-03-31 16:07:09 -04:00
Alan Rosenthal
677fc77d3c
Merge pull request #163 from AlanRosenthal/alan/local-values
...
Add `show local-values`
2023-03-31 16:03:52 -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
Alan Rosenthal
52c15705e9
Add local-write to bumble-console
...
Add a command to update the local gatt server, and notify/indicate subscribes (if any)
2023-03-30 12:33:32 -04:00
uael
e0af954baa
att: fixed use of unknown attribute
2023-03-30 14:05:43 +00:00
Lucas Abel
044597de66
Merge pull request #161 from google/uael/smp-get-number-type-hint
...
smp: fix `PairingDelegate.get_number` return type
2023-03-28 11:48:09 -07:00
Lucas Abel
5c59b6ca6d
Merge pull request #158 from benquike/main
...
Fix HCI_PIN_Code_Reply_Command
2023-03-27 17:37:54 -07:00
Hui Peng
dcd66743f6
Use delegate.get_string to get pin code
2023-03-27 17:08:26 -07:00
Hui Peng
423a5a95d8
add get_string API in PairingDelegate
2023-03-27 17:02:12 -07:00
Lucas Abel
8e881fdb18
smp: fix PairingDelegate.get_number return type
...
This function can return `None` to indicate a negative reply,
update the type hint accordingly.
2023-03-27 22:51:23 +00:00
Lucas Abel
4907022398
Merge pull request #157 from yuyangh/main
...
Add connection into event emit
2023-03-27 14:38:41 -07:00
Lucas Abel
e93f71c035
Add missing Connection import
2023-03-27 14:27:48 -07:00
Alan Rosenthal
94ff80563b
Merge pull request #160 from AlanRosenthal/alan/types
...
Add some missing types to apps/console.py, bumble/gatt_client.py
2023-03-27 15:00:03 -04:00
Lucas Abel
552deab8a7
Add Connection type
...
Co-authored-by: Alan Rosenthal <1288897+AlanRosenthal@users.noreply.github.com >
2023-03-27 11:53:34 -07:00
Lucas Abel
a72beb1b06
Merge pull request #144 from zxzxwu/classic_link
...
Add Classic Bluetooth link support
2023-03-27 11:41:42 -07:00
Lucas Abel
7e62d4a81a
Merge pull request #150 from zxzxwu/roleswitch
...
Support BR/EDR role switch & change events
2023-03-27 11:41:29 -07:00
Alan Rosenthal
a50181e6b8
Add some missing types to apps/console.py, bumble/gatt_client.py
...
Added via code inspection (not via a tool like pytype)
2023-03-25 16:12:38 +00:00
Josh Wu
9e1358536b
Add switch_role
2023-03-25 15:17:50 +08:00
Josh Wu
21d8a0d577
Add Classic Local Link support
...
Currently supported features:
* Connect
* Accept
* Switch Role
* Disconnect
* ACL data transmittion
2023-03-25 15:11:59 +08:00
Hui Peng
a8e61673d0
Fix HCI_PIN_Code_Reply_Command in Device.on_pin_code_request
2023-03-25 03:48:56 +00:00
Hui Peng
bd25cf27df
Fix a misconfig of HCI_PIN_Code_Reply_Command
...
The pin_code field is of fixed length of 16 bytes
2023-03-25 03:47:07 +00:00
Alan Rosenthal
dfb6734324
Fix typo when parsing device-config's gatt server
...
* 'permission' instead of 'permissions'
* Also added a more user friendly error message when Attribute.string_to_permissions fails
```
TypeError: Attribute::permissions error:
Expected a string containing any of the keys, seperated by commas: READABLE,WRITEABLE,READ_REQUIRES_ENCRYPTION,WRITE_REQUIRES_ENCRYPTION,READ_REQUIRES_AUTHENTICATION,WRITE_REQUIRES_AUTHENTICATION,READ_REQUIRES_AUTHORIZATION,WRITE_REQUIRES_AUTHORIZATION
Got: 1
```
```
Exception: Error parsing Device Config's GATT Services. The key 'permission' must be renamed to 'permissions'
```
2023-03-24 16:11:18 -04:00
Yuyang Huang
51ae6a5969
Add connection into event emit
2023-03-24 11:16:10 -07:00
Josh Wu
4fc13585cc
Handle BR/EDR connection roles
2023-03-24 15:13:48 +08:00
Lucas Abel
4c6320f98a
Merge pull request #142 from AlanRosenthal/main
...
Fix small bug with services set via --device-config
2023-03-23 12:47:14 -07:00
Lucas Abel
cc0d56ad14
Merge pull request #152 from duohoo/g722_decoder
...
Add G722 decoder with pure python implementation
2023-03-23 12:45:07 -07:00
Lucas Abel
0019fa8e79
Merge pull request #149 from yuyangh/yuyangh/add_ASHA_event_emit
...
Add ASHA event emitter
2023-03-23 12:44:42 -07:00
Yuyang Huang
9541cb6db0
Add ASHA audio status point
2023-03-23 12:15:10 -07:00
Lucas Abel
1cd13dfc19
Merge pull request #153 from benquike/main
...
Add 1 bug fix and a few features in bumble
2023-03-23 10:31:02 -07:00
Hui Peng
d4346c3c9b
delegate the HCI_PIN_Code_Request event on host
2023-03-23 10:14:56 -07:00
Hui Peng
afe8765508
Add on_pin_code_request to support legacy BT classic pairing
2023-03-23 10:14:56 -07:00
Hui Peng
6e9078d60e
Add implemenetation of HCI_PIN_Code_Request_Reply_Command
2023-03-23 09:50:50 -07:00
Hui Peng
d5c7d0db57
Fix a bug in HCI_Object.dict_from_bytes
2023-03-23 08:57:10 -07:00
Hui Peng
b70ebdef73
Allow Device.enable_classic to be configurable
2023-03-23 08:56:32 -07:00
Duo Ho
3af027e234
fix comments
2023-03-23 04:36:02 +00:00
Gilles Boccon-Gibod
6e719ca9fd
Merge pull request #147 from google/gbg/btbench
...
add benchmark tool and doc
2023-03-22 21:13:24 -07:00
Duo Ho
1a580d1c1e
Add G722 decoder with pure python implementation
2023-03-23 03:07:45 +00:00
Gilles Boccon-Gibod
864889ccab
rename .run to .spawn
2023-03-22 17:26:32 -07:00
Alan Rosenthal
fda00dcb28
Used pytype to find some missing types
...
```
pytype --pythonpath . ./bumble/device.py
```
2023-03-22 14:46:41 +00:00
Yuyang Huang
77e5618ce7
Add ASHA event emitter
2023-03-21 18:00:50 -07:00
Yuyang Huang
6fa857ad13
Add ASHA event emitter
2023-03-21 15:38:29 -07:00
Gilles Boccon-Gibod
bc29f327ef
address PR comments, take 2.
2023-03-21 15:33:34 -07:00
Gilles Boccon-Gibod
1894b96de4
address PR comments
2023-03-21 15:01:46 -07:00
Gilles Boccon-Gibod
1efa2e9d44
add benchmark tool and doc
2023-03-20 18:25:21 -07:00
Gilles Boccon-Gibod
aa9af61cbe
improve exception messages
2023-03-20 12:14:28 -07:00
Gilles Boccon-Gibod
dc3ac3060e
add auto-snooping for transports
2023-03-20 11:06:50 -07:00
Alan Rosenthal
c34c5fdf17
Fix small bug with services set via --device-config
...
before:
```
File "/home/alanrosenthal/code/fitbit/bumble/bumble/gatt.py", line 572, in __str__
f'Descriptor(handle=0x{self.handle:04X}, '
File "/home/alanrosenthal/code/fitbit/bumble/bumble/att.py", line 756, in read_value
self.permissions & self.READ_REQUIRES_ENCRYPTION
TypeError: unsupported operand type(s) for &: 'str' and 'int'
```
2023-03-14 18:16:46 -04:00
Gilles Boccon-Gibod
e77723a5f9
Merge pull request #135 from google/gbg/snoop
...
add snoop support
2023-03-07 09:16:33 -08:00
Gilles Boccon-Gibod
fe8cf51432
Merge pull request #139 from google/gbg/hotfix-001
...
two small hotfixes
2023-03-07 09:16:15 -08:00