diff options
author | Charlie Boutier <charliebout@google.com> | 2024-03-19 23:09:28 +0000 |
---|---|---|
committer | Slvr <30467496+SilverBzH@users.noreply.github.com> | 2024-03-20 11:17:50 -0700 |
commit | a9c62c44b32d18edcb3727c6194f69e30ef88a45 (patch) | |
tree | 8a15a8616bec109a98d754f3195f3a6a48a2b9de | |
parent | 7d0b4ef4e006d8a7d57a65358aa734b859d13885 (diff) | |
download | bumble-a9c62c44b32d18edcb3727c6194f69e30ef88a45.tar.gz |
pandora host: change AdvertisingType
change advertising type from high duty to low duty
Test: python le_host_test.py -c config.yml --test_bed android.bumbles --tests "test_scan('connectable','non_scannable','directed',0)" -v
-rw-r--r-- | bumble/pandora/host.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bumble/pandora/host.py b/bumble/pandora/host.py index f44e736..e54d2d5 100644 --- a/bumble/pandora/host.py +++ b/bumble/pandora/host.py @@ -486,14 +486,10 @@ class HostService(HostServicer): target_bytes = bytes(reversed(request.target)) if request.target_variant() == "public": target = Address(target_bytes, Address.PUBLIC_DEVICE_ADDRESS) - advertising_type = ( - AdvertisingType.DIRECTED_CONNECTABLE_HIGH_DUTY - ) # FIXME: HIGH_DUTY ? + advertising_type = AdvertisingType.DIRECTED_CONNECTABLE_LOW_DUTY else: target = Address(target_bytes, Address.RANDOM_DEVICE_ADDRESS) - advertising_type = ( - AdvertisingType.DIRECTED_CONNECTABLE_HIGH_DUTY - ) # FIXME: HIGH_DUTY ? + advertising_type = AdvertisingType.DIRECTED_CONNECTABLE_LOW_DUTY if request.connectable: |