bumble 0.0.210__py3-none-any.whl → 0.0.211__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bumble/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.0.210'
21
- __version_tuple__ = version_tuple = (0, 0, 210)
20
+ __version__ = version = '0.0.211'
21
+ __version_tuple__ = version_tuple = (0, 0, 211)
bumble/apps/bench.py CHANGED
@@ -1291,8 +1291,10 @@ class Central(Connection.Listener):
1291
1291
  logging.info(color('### Connected', 'cyan'))
1292
1292
  self.connection.listener = self
1293
1293
  print_connection(self.connection)
1294
- phy = await self.connection.get_phy()
1295
- print_connection_phy(phy)
1294
+
1295
+ if not self.classic:
1296
+ phy = await self.connection.get_phy()
1297
+ print_connection_phy(phy)
1296
1298
 
1297
1299
  # Switch roles if needed.
1298
1300
  if self.role_switch:
bumble/device.py CHANGED
@@ -3953,6 +3953,9 @@ class Device(utils.CompositeEventEmitter):
3953
3953
  return result.return_parameters.rssi
3954
3954
 
3955
3955
  async def get_connection_phy(self, connection: Connection) -> ConnectionPHY:
3956
+ if not self.host.supports_command(hci.HCI_LE_READ_PHY_COMMAND):
3957
+ return ConnectionPHY(hci.Phy.LE_1M, hci.Phy.LE_1M)
3958
+
3956
3959
  result = await self.send_command(
3957
3960
  hci.HCI_LE_Read_PHY_Command(connection_handle=connection.handle),
3958
3961
  check_result=True,
bumble/hci.py CHANGED
@@ -5825,12 +5825,18 @@ class HCI_LE_Advertising_Report_Event(HCI_LE_Meta_Event):
5825
5825
  return HCI_LE_Advertising_Report_Event.event_type_name(self.event_type)
5826
5826
 
5827
5827
  def to_string(self, indentation='', _=None):
5828
+ def data_to_str(data):
5829
+ try:
5830
+ return data.hex() + ': ' + str(AdvertisingData.from_bytes(data))
5831
+ except Exception:
5832
+ return data.hex()
5833
+
5828
5834
  return super().to_string(
5829
5835
  indentation,
5830
5836
  {
5831
5837
  'event_type': HCI_LE_Advertising_Report_Event.event_type_name,
5832
5838
  'address_type': Address.address_type_name,
5833
- 'data': lambda x: str(AdvertisingData.from_bytes(x)),
5839
+ 'data': data_to_str,
5834
5840
  },
5835
5841
  )
5836
5842
 
@@ -6055,12 +6061,18 @@ class HCI_LE_Extended_Advertising_Report_Event(HCI_LE_Meta_Event):
6055
6061
 
6056
6062
  def to_string(self, indentation='', _=None):
6057
6063
  # pylint: disable=line-too-long
6064
+ def data_to_str(data):
6065
+ try:
6066
+ return data.hex() + ': ' + str(AdvertisingData.from_bytes(data))
6067
+ except Exception:
6068
+ return data.hex()
6069
+
6058
6070
  return super().to_string(
6059
6071
  indentation,
6060
6072
  {
6061
6073
  'event_type': HCI_LE_Extended_Advertising_Report_Event.event_type_string,
6062
6074
  'address_type': Address.address_type_name,
6063
- 'data': lambda x: str(AdvertisingData.from_bytes(x)),
6075
+ 'data': data_to_str,
6064
6076
  },
6065
6077
  )
6066
6078
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bumble
3
- Version: 0.0.210
3
+ Version: 0.0.211
4
4
  Summary: Bluetooth Stack for Apps, Emulation, Test and Experimentation
5
5
  Author-email: Google <bumble-dev@google.com>
6
6
  Project-URL: Homepage, https://github.com/google/bumble
@@ -1,5 +1,5 @@
1
1
  bumble/__init__.py,sha256=Q8jkz6rgl95IMAeInQVt_2GLoJl3DcEP2cxtrQ-ho5c,110
2
- bumble/_version.py,sha256=ssVEYa9Mws5YmlA-KfXVICuOtpkGGcevHhe7IhztSks,515
2
+ bumble/_version.py,sha256=aR-LGNS0mpZ0gX0WLnctbHO5P6G_SBKNhB_l9Xl2qFM,515
3
3
  bumble/a2dp.py,sha256=ej8WYIbsGVuewIAb85I295TQq3Qom-0BZqfUgZqx-fk,31817
4
4
  bumble/at.py,sha256=Giu2VUSJKH-jIh10lOfumiqy-FyO99Ra6nJ7UiWQ0H8,3114
5
5
  bumble/att.py,sha256=9NDSWmRltpr1SmXB_s2sdt26b9H57UZeX9PEG5RlSNc,33462
@@ -15,13 +15,13 @@ bumble/controller.py,sha256=5U9FVbhZtiU5hWALMkp0nNTNT2LqCaBrkNF8U1yPve0,62069
15
15
  bumble/core.py,sha256=qcnMgbLioqH4iqUB4c9g52Y25eMuF_vXb3FARAM5kV0,78733
16
16
  bumble/crypto.py,sha256=L6z3dn9-dgKYRtOM6O3F6n6Ju4PwTM3LAFJtCg_ie78,9382
17
17
  bumble/decoder.py,sha256=0-VNWZT-u7lvK3qBpAuYT0M6Rz_bMgMi4CjfUXX_6RM,9728
18
- bumble/device.py,sha256=7vfQctCzesU1ijEQcRcoCbfpg5i_8w8M9QSyVwQrivc,233450
18
+ bumble/device.py,sha256=Jm_bpx1xjzM33ct1ode748zFGA2cQMtsr3lxgvgmRIs,233586
19
19
  bumble/gap.py,sha256=BYJN74KgOHTrgTF5NcdUCBsWrab6lXu7enCYnAMQQl0,2144
20
20
  bumble/gatt.py,sha256=-46xllOWG4klMjhdqWqIyQs0HeeYikCImAzjVk6OkzU,34659
21
21
  bumble/gatt_adapters.py,sha256=LivAzLQu8rzDFu16stt8DLhh_W_4KSCZZQsExpJ3ZYI,13233
22
22
  bumble/gatt_client.py,sha256=zd3e3DKma6dMdDr3K2Rr7WbHqc0UVITsr-BCo2JFycE,44318
23
23
  bumble/gatt_server.py,sha256=adUYMYZhoBvyRFfLYZNQD_WsjJIgpgBE7HFMSj-9VZY,37509
24
- bumble/hci.py,sha256=xYDOaOsoM4HyDdigWpavZOVkDl4uJ5BdE8wbR09NXTg,314108
24
+ bumble/hci.py,sha256=BWH4rJTqUj7ju7nvzkTXmz1D3Iz-lcH1yAJjDFJU9hY,314470
25
25
  bumble/helpers.py,sha256=m0w4UgFFNDEnXwHrDyfRlcBObdVed2fqXGL0lvR3c8s,12733
26
26
  bumble/hfp.py,sha256=stRpzzzlNk7hbMCRv-RYFA2dHIAZ3-UHv5F2tduRGjE,75764
27
27
  bumble/hid.py,sha256=_ptF4EDMFZIP06M-MDfj-QavwBZ3khGbSrawttwsHyQ,20354
@@ -40,7 +40,7 @@ bumble/utils.py,sha256=jtPKJhuytkIu18sK23S7MJa8BcIdRxDx0_Lg_kfEGLs,16229
40
40
  bumble/apps/README.md,sha256=XTwjRAY-EJWDXpl1V8K3Mw8B7kIqzUIUizRjVBVhoIE,1769
41
41
  bumble/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  bumble/apps/auracast.py,sha256=OqpBnDYuJcECxEPqG5Xo8dK7o92c9NPPlr6DJTIkv3g,44550
43
- bumble/apps/bench.py,sha256=VeKqD0zxS-cA1Q_peOspFXWFGKIQpNp3ohOB6hot3QQ,61366
43
+ bumble/apps/bench.py,sha256=YJVhVmbI5D5NMWlx4cuk3sYwQn1U9G4Ao31_UlIA9hU,61408
44
44
  bumble/apps/ble_rpa_tool.py,sha256=ZQtsbfnLPd5qUAkEBPpNgJLRynBBc7q_9cDHKUW2SQ0,1701
45
45
  bumble/apps/console.py,sha256=q_jlNud6cTQpMRzqIslfpnHBECzVSGgPAhV0YhwhylM,45477
46
46
  bumble/apps/controller_info.py,sha256=SRjTY66I8752oPa_G3y2D_H9NQj3HWxQ_fWKllNu4yo,12484
@@ -173,9 +173,9 @@ bumble/vendor/android/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
173
173
  bumble/vendor/android/hci.py,sha256=-ZryisGrnxYEXEM9kcR2ta4joNhAgAxgRYAEYLq5tT0,11651
174
174
  bumble/vendor/zephyr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
175
175
  bumble/vendor/zephyr/hci.py,sha256=d83bC0TvT947eN4roFjLkQefWtHOoNsr4xib2ctSkvA,3195
176
- bumble-0.0.210.dist-info/licenses/LICENSE,sha256=FvaYh4NRWIGgS_OwoBs5gFgkCmAghZ-DYnIGBZPuw-s,12142
177
- bumble-0.0.210.dist-info/METADATA,sha256=ysjzJUUSZzk5j-myjuVj6niAGQwxvbs5-J39_Aod7QI,6064
178
- bumble-0.0.210.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
179
- bumble-0.0.210.dist-info/entry_points.txt,sha256=0mBShtMEyPU3NxVWkl-cixtC7W04yZxJmAh2WN-UzX8,1140
180
- bumble-0.0.210.dist-info/top_level.txt,sha256=tV6JJKaHPYMFiJYiBYFW24PCcfLxTJZdlu6BmH3Cb00,7
181
- bumble-0.0.210.dist-info/RECORD,,
176
+ bumble-0.0.211.dist-info/licenses/LICENSE,sha256=FvaYh4NRWIGgS_OwoBs5gFgkCmAghZ-DYnIGBZPuw-s,12142
177
+ bumble-0.0.211.dist-info/METADATA,sha256=no0TW66nOqm2hzl3bDYF0cDlah_9xkdKipYIlkQ98p4,6064
178
+ bumble-0.0.211.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
179
+ bumble-0.0.211.dist-info/entry_points.txt,sha256=0mBShtMEyPU3NxVWkl-cixtC7W04yZxJmAh2WN-UzX8,1140
180
+ bumble-0.0.211.dist-info/top_level.txt,sha256=tV6JJKaHPYMFiJYiBYFW24PCcfLxTJZdlu6BmH3Cb00,7
181
+ bumble-0.0.211.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.0)
2
+ Generator: setuptools (79.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5