mirror of
https://github.com/google/bumble.git
synced 2026-04-16 00:25:31 +00:00
gbg/extended scanning (#47)
Squashed: * add extended report class * more HCI commands * add AdvertisingType * add phy options * fix tests
This commit is contained in:
committed by
GitHub
parent
4d96b821bc
commit
eb8556ccf6
@@ -21,9 +21,9 @@ from bumble.transport import PacketParser
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
class ScannerListener(Device.Listener):
|
||||
def on_advertisement(self, address, ad_data, rssi, connectable):
|
||||
address_type_string = ('P', 'R', 'PI', 'RI')[address.address_type]
|
||||
print(f'>>> {address} [{address_type_string}]: RSSI={rssi}, {ad_data}')
|
||||
def on_advertisement(self, advertisement):
|
||||
address_type_string = ('P', 'R', 'PI', 'RI')[advertisement.address.address_type]
|
||||
print(f'>>> {advertisement.address} [{address_type_string}]: RSSI={advertisement.rssi}, {advertisement.ad_data}')
|
||||
|
||||
|
||||
class HciSource:
|
||||
|
||||
Reference in New Issue
Block a user