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
Yuyang Huang
697d5df3f8
code style update
2022-12-01 10:50:15 -08:00
Yuyang Huang
87aa4f617e
add ASHA advertising factory method
2022-12-01 10:40:30 -08:00
Alan Rosenthal
a8eff737e6
Add Device::add_default_services()
...
This will allow a test to:
a: add services to a device
b: reset services via `Server()`
c: add the default services back
2022-12-01 17:02:54 +00:00
Yuyang Huang
d92b7e9b74
add ASHA Profile
2022-11-29 10:34:59 -08:00
Yuyang Huang
b0336adf1c
add ASHA GATT UUID
2022-11-29 10:02:40 -08:00
Abel Lucas
691450c7de
gatt: fix CharacteristicDeclaration.__str__ and associated test
2022-11-29 16:43:47 +00:00
Abel Lucas
99a0eb21c1
address: fix deprecated use of combined @classmethod and @property
2022-11-29 16:33:12 +00:00
Abel Lucas
ab4859bd94
device: fix typos
2022-11-29 16:33:12 +00:00
Lucas Abel
0d70cbde64
Merge pull request #75 from google/uael/fixes
...
Pairing: device/host fixes & improvements
2022-11-28 21:42:43 -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
Gilles Boccon-Gibod
062dc1e53d
Merge pull request #85 from AlanRosenthal/alan/gatt_server_console2
...
Add `bumble-console --device-config` support for gatt services
2022-11-28 19:19:25 -08:00
Abel Lucas
662704e551
classic: complete authentication when being the .authenticate acceptor
2022-11-29 00:28:39 +00:00
Abel Lucas
02a474c44e
smp: emit enough information on pairing complete to deduce security level
2022-11-29 00:28:38 +00:00
Abel Lucas
a1c7aec492
device: fix .find_connection_by_bd_addr
2022-11-29 00:28:38 +00:00
Abel Lucas
6112f00049
device: introduce BR/EDR pending connections
...
This commit enable the BR/EDR pairing to run asynchronously to
the connection being established.
When in security mode 3, a controller shall start authentication as
part of the connection, which result in HCI events being sent on a BD
address without a completed connection (ie. no connection handle).
2022-11-29 00:28:38 +00: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
Gilles Boccon-Gibod
a739fc71ce
Merge pull request #84 from google/gbg/78
...
use libusb auto-detach feature
2022-11-27 12:42:02 -08: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
9e5a85bd10
use libusb auto-detach feature
2022-11-25 17:52:13 -08:00
Alan Rosenthal
a3e4674819
Fix test failures
...
a. `DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead`
Updated call in `bumble/smp.py`
b. `ModuleNotFoundError: No module named 'bumble.apps'`
Updated imports in `tests/import_test.py`
c. Added `pytest-html` for easier viewing of test results
Added package in `setup.cfg`, and hook in `tasks.py`
d. Updated workflows to use `invoke test`
This is a partial fix of #81
2022-11-23 11:31:27 -05:00
Abel Lucas
5f1d57fcb0
device: simplify and fixes remote name request
2022-11-22 21:20:56 +00:00
Gilles Boccon-Gibod
ae0b739e4a
Merge pull request #79 from google/gbg/fix-host-reset
...
fix sequencing logic broken by earlier merge
2022-11-22 09:16:26 -08:00
Gilles Boccon-Gibod
22218627f6
fix sequencing logic broken by earlier merge
2022-11-21 21:07:47 -08:00
Michael Mogenson
1c72242264
Fix for 'Host' object has no attribute 'add_listener'
...
Pyee's add_listener() method was not added until release 9.0.0. Bumble's
setup.cfg specifies a minimum pyee version of 8.2.2.
Remove the call to add_listener() in l2cap.py. If the add_listener() API
is prefered over the on(), another solution would be to bump the pyee
version requirement.
2022-11-21 12:31:21 -05:00
Abel Lucas
9c133706e6
keys: add a way to remove all bonds from key store
2022-11-18 18:22:15 +00:00
Michael Mogenson
e6c062117f
Swap arguments to ConnectionError in RFCOMM Multiplexer
...
Minor fixup. Change the order of arguments to ConnectionError to set the
transport and address correctly in rfcomm.py on_dm_frame().
2022-11-18 10:02:40 -05:00
Abel Lucas
c0810230a6
address: add public information to the stringified value
...
This affect the way security keys are stored. For instance the same
key can be used both as public and random, and it need to be stored
separately one from each other.
2022-11-14 20:05:12 +00:00
Michael Mogenson
27c46eef9d
Merge pull request #71 from mogenson/prefer-notify
...
Add prefer_notify option to gatt_client subscribe()
2022-11-13 19:53:09 -05:00
Michael Mogenson
c140876157
Add prefer_notify option to gatt_client subscribe()
...
If characteristic supports Notify and Indicate, the prefer_notify option
will subscribe with Notify if True or Indicate if False.
If characteristic only supports one property, Notify or Indicate, that
mode will be selected, regardless of the prefer_notify setting.
Tested with a characteristic that supports both Notify and Indicate and
verified that prefer_notify sets the desired mode.
2022-11-13 19:38:12 -05:00
Abel Lucas
b91d0e24c1
device: handle HCI passkey notification event
2022-11-11 18:43:35 +00:00
Abel Lucas
eb46f60c87
le: save own_address_type on ACL connection for SMP to be able to use the right self address
2022-11-10 02:06:37 +00:00
Abel Lucas
8bbba7c84c
pairing: always ask user for confirmation, even in JUST_WORKS method
2022-11-10 01:58:02 +00:00
Gilles Boccon-Gibod
0f219eff12
address PR comments
2022-11-09 13:18:30 -08:00
Gilles Boccon-Gibod
4a1345cf95
only force the type if the address is passed as a string
2022-11-08 19:10:13 -08:00
Gilles Boccon-Gibod
8a1cdef152
fix classic connection event filtering
2022-11-08 17:33:29 -08:00
Lucas Abel
cea1905ffb
Merge pull request #59 from google/uael/device-cleanup
...
le: pass `own_address_type` to BLE `Device.connect`
2022-11-08 11:50:40 -08:00
Abel Lucas
af8e0d4dc7
le: pass own_address_type to BLE Device.connect
2022-11-08 18:22:54 +00:00
Gilles Boccon-Gibod
875195aebb
Merge pull request #58 from AlanRosenthal/main
...
Add definition of `Client Characteristic Configuration bit`
2022-11-08 09:34:22 -08: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
Alan Rosenthal
d4228e3b5b
Add definition of Client Characteristic Configuration bit
2022-11-07 19:43:22 -05:00
Abel Lucas
ca16410a6d
device: add option to check for the address type when using find_connection_by_bd_addr
2022-11-07 22:17:01 +00:00
Abel Lucas
b95888eb39
le: permit legacy scanning even when extended is supported
2022-11-07 22:15:54 +00:00
Abel Lucas
56ed46adfa
classic: add BR/EDR accept connection logic
2022-11-04 17:26:59 +00:00
Abel Lucas
7044102e05
classic: upgrade Device.cancel_connection logic to support canceling ongoing BR/EDR connections
2022-11-04 17:26:59 +00:00
Abel Lucas
ca8f284888
le: add own_address_type parameter to Device.start_advertising
2022-11-04 17:26:59 +00:00
Abel Lucas
e9e14f5183
le: make the device connecting state relative to LE only
...
We may need to add a distinct BR/EDR connecting state in the future.
2022-11-04 17:26:59 +00:00