mirror of
https://github.com/google/bumble.git
synced 2026-05-06 03:38:01 +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,
|
||||
advertising_type=AdvertisingType.UNDIRECTED_CONNECTABLE_SCANNABLE,
|
||||
target=None,
|
||||
own_address_type=Address.RANDOM_DEVICE_ADDRESS,
|
||||
auto_restart=False
|
||||
):
|
||||
# If we're advertising, stop first
|
||||
@@ -921,7 +922,7 @@ class Device(CompositeEventEmitter):
|
||||
advertising_interval_min = self.advertising_interval_min,
|
||||
advertising_interval_max = self.advertising_interval_max,
|
||||
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 = peer_address,
|
||||
advertising_channel_map = 7,
|
||||
|
||||
Reference in New Issue
Block a user