forked from auracaster/bumble_mirror
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
This commit is contained in:
@@ -486,14 +486,10 @@ class HostService(HostServicer):
|
|||||||
target_bytes = bytes(reversed(request.target))
|
target_bytes = bytes(reversed(request.target))
|
||||||
if request.target_variant() == "public":
|
if request.target_variant() == "public":
|
||||||
target = Address(target_bytes, Address.PUBLIC_DEVICE_ADDRESS)
|
target = Address(target_bytes, Address.PUBLIC_DEVICE_ADDRESS)
|
||||||
advertising_type = (
|
advertising_type = AdvertisingType.DIRECTED_CONNECTABLE_LOW_DUTY
|
||||||
AdvertisingType.DIRECTED_CONNECTABLE_HIGH_DUTY
|
|
||||||
) # FIXME: HIGH_DUTY ?
|
|
||||||
else:
|
else:
|
||||||
target = Address(target_bytes, Address.RANDOM_DEVICE_ADDRESS)
|
target = Address(target_bytes, Address.RANDOM_DEVICE_ADDRESS)
|
||||||
advertising_type = (
|
advertising_type = AdvertisingType.DIRECTED_CONNECTABLE_LOW_DUTY
|
||||||
AdvertisingType.DIRECTED_CONNECTABLE_HIGH_DUTY
|
|
||||||
) # FIXME: HIGH_DUTY ?
|
|
||||||
|
|
||||||
if request.connectable:
|
if request.connectable:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user