mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
le: add own_address_type parameter to Device.start_advertising
This commit is contained in:
@@ -887,6 +887,7 @@ class Device(CompositeEventEmitter):
|
|||||||
self,
|
self,
|
||||||
advertising_type=AdvertisingType.UNDIRECTED_CONNECTABLE_SCANNABLE,
|
advertising_type=AdvertisingType.UNDIRECTED_CONNECTABLE_SCANNABLE,
|
||||||
target=None,
|
target=None,
|
||||||
|
own_address_type=Address.RANDOM_DEVICE_ADDRESS,
|
||||||
auto_restart=False
|
auto_restart=False
|
||||||
):
|
):
|
||||||
# If we're advertising, stop first
|
# If we're advertising, stop first
|
||||||
@@ -921,7 +922,7 @@ class Device(CompositeEventEmitter):
|
|||||||
advertising_interval_min = self.advertising_interval_min,
|
advertising_interval_min = self.advertising_interval_min,
|
||||||
advertising_interval_max = self.advertising_interval_max,
|
advertising_interval_max = self.advertising_interval_max,
|
||||||
advertising_type = int(advertising_type),
|
advertising_type = int(advertising_type),
|
||||||
own_address_type = Address.RANDOM_DEVICE_ADDRESS, # TODO: allow using the public address
|
own_address_type = own_address_type,
|
||||||
peer_address_type = peer_address_type,
|
peer_address_type = peer_address_type,
|
||||||
peer_address = peer_address,
|
peer_address = peer_address,
|
||||||
advertising_channel_map = 7,
|
advertising_channel_map = 7,
|
||||||
|
|||||||
Reference in New Issue
Block a user