bumble 0.0.222__py3-none-any.whl → 0.0.224__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.
Files changed (43) hide show
  1. bumble/_version.py +2 -2
  2. bumble/apps/controller_info.py +90 -114
  3. bumble/apps/controller_loopback.py +11 -9
  4. bumble/apps/gg_bridge.py +1 -1
  5. bumble/apps/hci_bridge.py +3 -1
  6. bumble/apps/l2cap_bridge.py +1 -1
  7. bumble/apps/rfcomm_bridge.py +1 -1
  8. bumble/apps/scan.py +10 -4
  9. bumble/apps/speaker/speaker.py +1 -1
  10. bumble/apps/usb_probe.py +15 -2
  11. bumble/att.py +97 -32
  12. bumble/avctp.py +1 -1
  13. bumble/avdtp.py +3 -3
  14. bumble/avrcp.py +366 -190
  15. bumble/bridge.py +10 -2
  16. bumble/controller.py +14 -1
  17. bumble/core.py +1 -1
  18. bumble/device.py +999 -577
  19. bumble/drivers/intel.py +45 -39
  20. bumble/drivers/rtk.py +102 -43
  21. bumble/gatt.py +2 -2
  22. bumble/gatt_client.py +5 -4
  23. bumble/gatt_server.py +100 -1
  24. bumble/hci.py +1367 -844
  25. bumble/hid.py +2 -2
  26. bumble/host.py +339 -157
  27. bumble/l2cap.py +13 -6
  28. bumble/pandora/l2cap.py +1 -1
  29. bumble/profiles/battery_service.py +25 -34
  30. bumble/profiles/heart_rate_service.py +130 -121
  31. bumble/rfcomm.py +1 -1
  32. bumble/sdp.py +2 -2
  33. bumble/smp.py +8 -3
  34. bumble/snoop.py +111 -1
  35. bumble/transport/android_netsim.py +1 -1
  36. bumble/vendor/android/hci.py +108 -86
  37. bumble/vendor/zephyr/hci.py +24 -18
  38. {bumble-0.0.222.dist-info → bumble-0.0.224.dist-info}/METADATA +4 -3
  39. {bumble-0.0.222.dist-info → bumble-0.0.224.dist-info}/RECORD +43 -43
  40. {bumble-0.0.222.dist-info → bumble-0.0.224.dist-info}/WHEEL +1 -1
  41. {bumble-0.0.222.dist-info → bumble-0.0.224.dist-info}/entry_points.txt +0 -0
  42. {bumble-0.0.222.dist-info → bumble-0.0.224.dist-info}/licenses/LICENSE +0 -0
  43. {bumble-0.0.222.dist-info → bumble-0.0.224.dist-info}/top_level.txt +0 -0
bumble/avctp.py CHANGED
@@ -235,7 +235,7 @@ class Protocol:
235
235
  )
236
236
  + payload
237
237
  )
238
- self.l2cap_channel.send_pdu(pdu)
238
+ self.l2cap_channel.write(pdu)
239
239
 
240
240
  def send_command(self, transaction_label: int, pid: int, payload: bytes) -> None:
241
241
  logger.debug(
bumble/avdtp.py CHANGED
@@ -268,7 +268,7 @@ class MediaPacketPump:
268
268
  await self.clock.sleep(delay)
269
269
 
270
270
  # Emit
271
- rtp_channel.send_pdu(bytes(packet))
271
+ rtp_channel.write(bytes(packet))
272
272
  logger.debug(
273
273
  f'{color(">>> sending RTP packet:", "green")} {packet}'
274
274
  )
@@ -1519,7 +1519,7 @@ class Protocol(utils.EventEmitter):
1519
1519
  header = bytes([first_header_byte])
1520
1520
 
1521
1521
  # Send one packet
1522
- self.l2cap_channel.send_pdu(header + payload[:max_fragment_size])
1522
+ self.l2cap_channel.write(header + payload[:max_fragment_size])
1523
1523
 
1524
1524
  # Prepare for the next packet
1525
1525
  payload = payload[max_fragment_size:]
@@ -1829,7 +1829,7 @@ class Stream:
1829
1829
 
1830
1830
  def send_media_packet(self, packet: MediaPacket) -> None:
1831
1831
  assert self.rtp_channel
1832
- self.rtp_channel.send_pdu(bytes(packet))
1832
+ self.rtp_channel.write(bytes(packet))
1833
1833
 
1834
1834
  async def configure(self) -> None:
1835
1835
  if self.state != State.IDLE: