bumble 0.0.195__tar.gz → 0.0.199__tar.gz
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-0.0.199/.devcontainer/devcontainer.json +30 -0
- {bumble-0.0.195/bumble.egg-info → bumble-0.0.199}/PKG-INFO +1 -1
- {bumble-0.0.195 → bumble-0.0.199}/apps/auracast.py +351 -66
- {bumble-0.0.195 → bumble-0.0.199}/apps/console.py +5 -20
- bumble-0.0.199/apps/device_info.py +230 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/gatt_dump.py +4 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/lea_unicast/app.py +16 -17
- {bumble-0.0.195 → bumble-0.0.199}/apps/pair.py +32 -5
- {bumble-0.0.195 → bumble-0.0.199}/bumble/_version.py +2 -2
- {bumble-0.0.195 → bumble-0.0.199}/bumble/at.py +12 -6
- {bumble-0.0.195 → bumble-0.0.199}/bumble/att.py +56 -40
- {bumble-0.0.195 → bumble-0.0.199}/bumble/avc.py +8 -5
- {bumble-0.0.195 → bumble-0.0.199}/bumble/avctp.py +3 -2
- {bumble-0.0.195 → bumble-0.0.199}/bumble/avdtp.py +7 -3
- {bumble-0.0.195 → bumble-0.0.199}/bumble/avrcp.py +2 -1
- {bumble-0.0.195 → bumble-0.0.199}/bumble/codecs.py +17 -13
- {bumble-0.0.195 → bumble-0.0.199}/bumble/colors.py +6 -2
- {bumble-0.0.195 → bumble-0.0.199}/bumble/core.py +37 -7
- {bumble-0.0.195 → bumble-0.0.199}/bumble/decoder.py +14 -10
- {bumble-0.0.195 → bumble-0.0.199}/bumble/device.py +382 -111
- {bumble-0.0.195 → bumble-0.0.199}/bumble/drivers/rtk.py +32 -13
- {bumble-0.0.195 → bumble-0.0.199}/bumble/gatt.py +30 -20
- {bumble-0.0.195 → bumble-0.0.199}/bumble/gatt_client.py +15 -29
- {bumble-0.0.195 → bumble-0.0.199}/bumble/gatt_server.py +14 -6
- {bumble-0.0.195 → bumble-0.0.199}/bumble/hci.py +322 -32
- {bumble-0.0.195 → bumble-0.0.199}/bumble/hid.py +24 -28
- {bumble-0.0.195 → bumble-0.0.199}/bumble/host.py +20 -6
- {bumble-0.0.195 → bumble-0.0.199}/bumble/l2cap.py +24 -17
- {bumble-0.0.195 → bumble-0.0.199}/bumble/link.py +8 -3
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/__init__.py +3 -0
- bumble-0.0.199/bumble/pandora/l2cap.py +310 -0
- bumble-0.0.199/bumble/profiles/aics.py +520 -0
- bumble-0.0.199/bumble/profiles/ascs.py +739 -0
- bumble-0.0.199/bumble/profiles/asha.py +295 -0
- bumble-0.0.199/bumble/profiles/bap.py +548 -0
- bumble-0.0.199/bumble/profiles/bass.py +440 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/csip.py +4 -4
- bumble-0.0.199/bumble/profiles/gap.py +110 -0
- bumble-0.0.199/bumble/profiles/hap.py +665 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/heart_rate_service.py +4 -3
- bumble-0.0.199/bumble/profiles/le_audio.py +83 -0
- bumble-0.0.199/bumble/profiles/mcp.py +448 -0
- bumble-0.0.199/bumble/profiles/pacs.py +210 -0
- bumble-0.0.199/bumble/profiles/tmap.py +89 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/vcp.py +5 -3
- {bumble-0.0.195 → bumble-0.0.199}/bumble/rfcomm.py +4 -2
- {bumble-0.0.195 → bumble-0.0.199}/bumble/sdp.py +13 -11
- {bumble-0.0.195 → bumble-0.0.199}/bumble/smp.py +43 -12
- {bumble-0.0.195 → bumble-0.0.199}/bumble/snoop.py +5 -4
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/__init__.py +8 -2
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/android_emulator.py +9 -3
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/android_netsim.py +9 -7
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/common.py +46 -18
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/pyusb.py +21 -4
- bumble-0.0.199/bumble/transport/unix.py +56 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/usb.py +57 -46
- {bumble-0.0.195 → bumble-0.0.199/bumble.egg-info}/PKG-INFO +1 -1
- {bumble-0.0.195 → bumble-0.0.199}/bumble.egg-info/SOURCES.txt +28 -1
- bumble-0.0.199/docs/images/favicon.ico +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/bumble.js +15 -3
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/scanner/scanner.py +12 -11
- bumble-0.0.199/examples/asha_sink.html +95 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/asha_sink1.json +2 -1
- {bumble-0.0.195 → bumble-0.0.199}/examples/asha_sink2.json +2 -1
- bumble-0.0.199/examples/device_with_rpa.json +7 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/leaudio.json +1 -0
- bumble-0.0.199/examples/mcp_server.html +83 -0
- bumble-0.0.199/examples/run_asha_sink.py +119 -0
- bumble-0.0.199/examples/run_hap_server.py +107 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_hid_device.py +25 -29
- bumble-0.0.199/examples/run_mcp_client.py +194 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_unicast_server.py +2 -5
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_vcp_renderer.py +2 -3
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/MainActivity.kt +9 -2
- bumble-0.0.199/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Scan.kt +38 -0
- {bumble-0.0.195 → bumble-0.0.199}/tasks.py +20 -1
- bumble-0.0.199/tests/aics_test.py +494 -0
- bumble-0.0.199/tests/asha_test.py +163 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/bap_test.py +12 -7
- bumble-0.0.199/tests/bass_test.py +146 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/device_test.py +16 -28
- {bumble-0.0.195 → bumble-0.0.199}/tests/gatt_test.py +129 -0
- bumble-0.0.199/tests/hap_test.py +227 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/hci_test.py +47 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/import_test.py +30 -2
- bumble-0.0.199/tests/le_audio_test.py +39 -0
- bumble-0.0.199/tests/mcp_test.py +132 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/smp_test.py +55 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/vcp_test.py +3 -0
- bumble-0.0.199/web/.gitignore +3 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/README.md +8 -1
- {bumble-0.0.195 → bumble-0.0.199}/web/bumble.js +15 -3
- bumble-0.0.199/web/favicon.ico +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/scanner/scanner.py +12 -11
- bumble-0.0.195/bumble/profiles/asha_service.py +0 -193
- bumble-0.0.195/bumble/profiles/bap.py +0 -1421
- bumble-0.0.195/bumble/profiles/le_audio.py +0 -49
- bumble-0.0.195/examples/run_asha_sink.py +0 -207
- {bumble-0.0.195 → bumble-0.0.199}/.git-blame-ignore-revs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.github/workflows/code-check.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.github/workflows/codeql-analysis.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.github/workflows/python-avatar.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.github/workflows/python-build-test.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.github/workflows/python-publish.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/.vscode/settings.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/CONTRIBUTING.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/LICENSE +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/README.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/README.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/bench.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/ble_rpa_tool.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/controller_info.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/controller_loopback.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/controllers.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/gg_bridge.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/hci_bridge.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/l2cap_bridge.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/lea_unicast/index.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/lea_unicast/liblc3.wasm +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/link_relay/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/link_relay/link_relay.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/link_relay/logging.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/pandora_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/rfcomm_bridge.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/scan.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/show.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/speaker/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/speaker/logo.svg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/speaker/speaker.css +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/speaker/speaker.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/speaker/speaker.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/speaker/speaker.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/unbond.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/apps/usb_probe.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/a2dp.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/bridge.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/company_ids.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/controller.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/crypto.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/drivers/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/drivers/common.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/drivers/intel.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/gap.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/helpers.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/hfp.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/keys.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pairing.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/config.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/device.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/host.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/py.typed +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/security.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/pandora/utils.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/battery_service.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/cap.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/device_information_service.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/pbp.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/profiles/py.typed +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/py.typed +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/file.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/common_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/common_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/common_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_device_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_packets_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/emulated_bluetooth_vhci_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/grpc_endpoint_description_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/hci_packet_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/hci_packet_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/hci_packet_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/packet_streamer_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/packet_streamer_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/packet_streamer_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/startup_pb2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/startup_pb2.pyi +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/grpc_protobuf/startup_pb2_grpc.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/hci_socket.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/pty.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/py.typed +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/serial.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/tcp_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/tcp_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/udp.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/vhci.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/ws_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/transport/ws_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/utils.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/vendor/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/vendor/android/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/vendor/android/hci.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/vendor/zephyr/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble/vendor/zephyr/hci.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble.egg-info/dependency_links.txt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble.egg-info/entry_points.txt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble.egg-info/requires.txt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/bumble.egg-info/top_level.txt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/README.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.svg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.vectornator/Artboard0.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.vectornator/Document.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.vectornator/Manifest.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.vectornator/Thumbnail.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo.vectornator/UndoHistory.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.svg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.vectornator/Artboard0.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.vectornator/Document.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.vectornator/Manifest.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.vectornator/Thumbnail.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/images/logo_framed.vectornator/UndoHistory.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/mkdocs.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/requirements.txt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/api/examples.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/api/guide.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/api/reference.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/bench.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/console.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/gatt_dump.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/gg_bridge.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/hci_bridge.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/link_relay.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/pair.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/show.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/speaker.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/unbond.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/apps_and_tools/usb_probe.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/components/controller.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/components/gatt.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/components/host.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/components/security_manager.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/development/code_style.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/development/contributing.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/development/python_environments.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/downloads/zephyr/hci_usb.zip +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/drivers/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/drivers/realtek.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/examples/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/extras/android_bt_bench.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/extras/android_remote_hci.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/extras/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/getting_started.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hardware/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/index.toml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/heart_rate_monitor/heart_rate_monitor.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/scanner/scanner.css +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/scanner/scanner.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/scanner/scanner.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/speaker/logo.svg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/speaker/speaker.css +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/speaker/speaker.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/speaker/speaker.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/speaker/speaker.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/hive/web/ui.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/images/bumble_layers.svg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/images/console_screenshot.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/images/favicon.ico +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/images/logo.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/images/logo_framed.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/images/speaker_screenshot.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/android.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/linux.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/macos.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/windows.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/winusb_driver.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/platforms/zephyr.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/android_emulator.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/file.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/hci_socket.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/pty.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/serial.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/tcp_client.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/tcp_server.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/udp.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/usb.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/vhci.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/ws_client.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/transports/ws_server.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/index.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/use_case_1.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/use_case_2.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/use_case_3.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/use_case_4.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/use_case_5.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/src/use_cases/use_case_6.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/docs/mkdocs/theme/partials/footer.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/environment.yml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/README.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/a2dp_sink1.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/async_runner.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/avrcp_as_sink.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/battery_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/battery_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/classic1.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/classic2.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/device1.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/device2.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/device3.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/device_information_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/device_information_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/heart_rate_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/heart_rate_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hfp_gateway.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hfp_gateway.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hfp_handsfree.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hfp_handsfree.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hid_key_map.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hid_keyboard.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/hid_report_parser.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/keyboard.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/keyboard.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/keyboard.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/leaudio_with_classic.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_a2dp_info.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_a2dp_sink.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_a2dp_source.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_advertiser.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_avrcp.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_cig_setup.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_classic_connect.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_classic_discoverable.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_classic_discovery.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_connect_and_encrypt.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_controller.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_controller_with_scanner.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_csis_servers.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_device_with_snooper.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_esco_connection.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_extended_advertiser.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_extended_advertiser_2.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_gatt_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_gatt_client_and_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_gatt_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_hfp_gateway.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_hfp_handsfree.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_hid_host.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_notifier.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_rfcomm_client.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_rfcomm_server.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/run_scanner.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/speaker.json +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/examples/vcp_renderer.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/build.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/proguard-rules.pro +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/ic_launcher-playstore.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/L2capClient.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/L2capServer.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Model.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Packet.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Receiver.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/RfcommClient.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/RfcommServer.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/Sender.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/SocketClient.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/SocketServer.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Color.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Theme.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/java/com/github/google/bumble/btbench/ui/theme/Type.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/drawable/ic_launcher_background.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/drawable/ic_launcher_foreground.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/values/colors.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/values/ic_launcher_background.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/values/strings.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/values/themes.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/xml/backup_rules.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/app/src/main/res/xml/data_extraction_rules.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/build.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/gradle/libs.versions.toml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/gradle/wrapper/gradle-wrapper.jar +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/gradle/wrapper/gradle-wrapper.properties +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/gradle.properties +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/gradlew +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/gradlew.bat +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/BtBench/settings.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/build.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/proguard-rules.pro +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/IBluetoothHci.aidl +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/IBluetoothHciCallbacks.aidl +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/aidl/android/hardware/bluetooth/Status.aidl +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/hidl/bluetooth/1.1/IBluetoothHci.hal +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/hidl/bluetooth/1.1/IBluetoothHciCallbacks.hal +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/ic_launcher-playstore.png +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/IBluetoothHci.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/Status.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/IBluetoothHci.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_0/Status.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_1/IBluetoothHci.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/android/hardware/bluetooth/V1_1/IBluetoothHciCallbacks.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/CommandLineInterface.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciHal.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciHalCallback.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciPacket.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciParser.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciProxy.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/HciServer.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/MainActivity.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Color.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Theme.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/java/com/github/google/bumble/remotehci/ui/theme/Type.kt +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/values/colors.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/values/ic_launcher_background.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/values/strings.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/values/themes.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/xml/backup_rules.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/app/src/main/res/xml/data_extraction_rules.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/build.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/gradle/libs.versions.toml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/gradle/wrapper/gradle-wrapper.jar +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/gradle/wrapper/gradle-wrapper.properties +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/gradle.properties +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/gradlew +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/gradlew.bat +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/build.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/consumer-rules.pro +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/proguard-rules.pro +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/AndroidManifest.xml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/internal/hidl/base/V1_0/DebugInfo.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/internal/hidl/base/V1_0/IBase.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/HidlSupport.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwBinder.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwBlob.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/HwParcel.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/IHwBinder.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/IHwInterface.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/NativeHandle.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/lib/src/main/java/android/os/ServiceManager.java +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/scripts/generate_java_from_aidl.sh +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/extras/android/RemoteHCI/settings.gradle.kts +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/noxfile.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/pyproject.toml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/.gitignore +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/CHANGELOG.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/Cargo.lock +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/Cargo.toml +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/README.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/examples/battery_client.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/examples/broadcast.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/examples/scanner.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/pytests/assigned_numbers.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/pytests/pytests.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/pytests/wrapper/drivers.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/pytests/wrapper/hci.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/pytests/wrapper/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/pytests/wrapper/transport.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/resources/test/firmware/realtek/README.md +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/resources/test/firmware/realtek/rtl8723b_fw_structure.bin +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/resources/test/firmware/realtek/rtl8761bu_fw_structure.bin +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/adv.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/firmware/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/firmware/rtk.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/l2cap/client_bridge.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/l2cap/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/l2cap/server_bridge.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/cli/usb/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/internal/drivers/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/internal/drivers/rtk.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/internal/hci/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/internal/hci/packets.pdl +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/internal/hci/tests.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/internal/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/lib.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/main.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/assigned_numbers/company_ids.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/assigned_numbers/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/assigned_numbers/services.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/common.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/controller.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/core.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/device/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/device/tests.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/drivers/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/drivers/rtk.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/gatt_client.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/hci.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/host.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/l2cap.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/link.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/logging.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/mod.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/profile.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/src/wrapper/transport.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/tools/file_header.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/rust/tools/gen_assigned_numbers.rs +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/scripts/process_android_emulator_protos.sh +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/scripts/process_android_netsim_protos.sh +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/setup.cfg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/setup.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/a2dp_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/at_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/avdtp_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/avrcp_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/cap_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/codecs_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/core_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/csip_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/decoder_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/g722_sample.g722 +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/hci_data_001.bin +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/hfp_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/host_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/keystore_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/l2cap_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/pytest.ini +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/rfcomm_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/sdp_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/self_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/test_utils.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/transport_tcp_server_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/transport_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tests/utils_test.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tools/__init__.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tools/generate_company_id_list.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tools/rtk_fw_download.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/tools/rtk_util.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/heart_rate_monitor/heart_rate_monitor.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/heart_rate_monitor/heart_rate_monitor.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/heart_rate_monitor/heart_rate_monitor.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/scanner/scanner.css +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/scanner/scanner.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/scanner/scanner.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/speaker/logo.svg +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/speaker/speaker.css +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/speaker/speaker.html +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/speaker/speaker.js +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/speaker/speaker.py +0 -0
- {bumble-0.0.195 → bumble-0.0.199}/web/ui.js +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
2
|
+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
|
3
|
+
{
|
|
4
|
+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
5
|
+
"image": "mcr.microsoft.com/devcontainers/universal:2",
|
|
6
|
+
|
|
7
|
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
8
|
+
// "features": {},
|
|
9
|
+
|
|
10
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
11
|
+
// "forwardPorts": [],
|
|
12
|
+
|
|
13
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
|
14
|
+
"postCreateCommand":
|
|
15
|
+
"python -m pip install '.[build,test,development,documentation]'",
|
|
16
|
+
|
|
17
|
+
// Configure tool-specific properties.
|
|
18
|
+
"customizations": {
|
|
19
|
+
// Configure properties specific to VS Code.
|
|
20
|
+
"vscode": {
|
|
21
|
+
// Add the IDs of extensions you want installed when the container is created.
|
|
22
|
+
"extensions": [
|
|
23
|
+
"ms-python.python"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
29
|
+
// "remoteUser": "root"
|
|
30
|
+
}
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
# -----------------------------------------------------------------------------
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
import asyncio
|
|
20
|
+
import contextlib
|
|
20
21
|
import dataclasses
|
|
21
22
|
import logging
|
|
22
23
|
import os
|
|
23
|
-
from typing import cast, Dict, Optional, Tuple
|
|
24
|
+
from typing import cast, Any, AsyncGenerator, Coroutine, Dict, Optional, Tuple
|
|
24
25
|
|
|
25
26
|
import click
|
|
26
27
|
import pyee
|
|
@@ -32,6 +33,7 @@ import bumble.device
|
|
|
32
33
|
import bumble.gatt
|
|
33
34
|
import bumble.hci
|
|
34
35
|
import bumble.profiles.bap
|
|
36
|
+
import bumble.profiles.bass
|
|
35
37
|
import bumble.profiles.pbp
|
|
36
38
|
import bumble.transport
|
|
37
39
|
import bumble.utils
|
|
@@ -46,14 +48,16 @@ logger = logging.getLogger(__name__)
|
|
|
46
48
|
# -----------------------------------------------------------------------------
|
|
47
49
|
# Constants
|
|
48
50
|
# -----------------------------------------------------------------------------
|
|
49
|
-
AURACAST_DEFAULT_DEVICE_NAME =
|
|
50
|
-
AURACAST_DEFAULT_DEVICE_ADDRESS = bumble.hci.Address(
|
|
51
|
+
AURACAST_DEFAULT_DEVICE_NAME = 'Bumble Auracast'
|
|
52
|
+
AURACAST_DEFAULT_DEVICE_ADDRESS = bumble.hci.Address('F0:F1:F2:F3:F4:F5')
|
|
53
|
+
AURACAST_DEFAULT_SYNC_TIMEOUT = 5.0
|
|
54
|
+
AURACAST_DEFAULT_ATT_MTU = 256
|
|
51
55
|
|
|
52
56
|
|
|
53
57
|
# -----------------------------------------------------------------------------
|
|
54
|
-
#
|
|
58
|
+
# Scan For Broadcasts
|
|
55
59
|
# -----------------------------------------------------------------------------
|
|
56
|
-
class
|
|
60
|
+
class BroadcastScanner(pyee.EventEmitter):
|
|
57
61
|
@dataclasses.dataclass
|
|
58
62
|
class Broadcast(pyee.EventEmitter):
|
|
59
63
|
name: str
|
|
@@ -79,22 +83,6 @@ class BroadcastDiscoverer:
|
|
|
79
83
|
self.sync.on('periodic_advertisement', self.on_periodic_advertisement)
|
|
80
84
|
self.sync.on('biginfo_advertisement', self.on_biginfo_advertisement)
|
|
81
85
|
|
|
82
|
-
self.establishment_timeout_task = asyncio.create_task(
|
|
83
|
-
self.wait_for_establishment()
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
async def wait_for_establishment(self) -> None:
|
|
87
|
-
await asyncio.sleep(5.0)
|
|
88
|
-
if self.sync.state == bumble.device.PeriodicAdvertisingSync.State.PENDING:
|
|
89
|
-
print(
|
|
90
|
-
color(
|
|
91
|
-
'!!! Periodic advertisement sync not established in time, '
|
|
92
|
-
'canceling',
|
|
93
|
-
'red',
|
|
94
|
-
)
|
|
95
|
-
)
|
|
96
|
-
await self.sync.terminate()
|
|
97
|
-
|
|
98
86
|
def update(self, advertisement: bumble.device.Advertisement) -> None:
|
|
99
87
|
self.rssi = advertisement.rssi
|
|
100
88
|
for service_data in advertisement.data.get_all(
|
|
@@ -139,6 +127,8 @@ class BroadcastDiscoverer:
|
|
|
139
127
|
data,
|
|
140
128
|
)
|
|
141
129
|
|
|
130
|
+
self.emit('update')
|
|
131
|
+
|
|
142
132
|
def print(self) -> None:
|
|
143
133
|
print(
|
|
144
134
|
color('Broadcast:', 'yellow'),
|
|
@@ -227,13 +217,12 @@ class BroadcastDiscoverer:
|
|
|
227
217
|
)
|
|
228
218
|
|
|
229
219
|
def on_sync_establishment(self) -> None:
|
|
230
|
-
self.
|
|
231
|
-
self.emit('change')
|
|
220
|
+
self.emit('sync_establishment')
|
|
232
221
|
|
|
233
222
|
def on_sync_loss(self) -> None:
|
|
234
223
|
self.basic_audio_announcement = None
|
|
235
224
|
self.biginfo = None
|
|
236
|
-
self.emit('
|
|
225
|
+
self.emit('sync_loss')
|
|
237
226
|
|
|
238
227
|
def on_periodic_advertisement(
|
|
239
228
|
self, advertisement: bumble.device.PeriodicAdvertisement
|
|
@@ -268,37 +257,21 @@ class BroadcastDiscoverer:
|
|
|
268
257
|
filter_duplicates: bool,
|
|
269
258
|
sync_timeout: float,
|
|
270
259
|
):
|
|
260
|
+
super().__init__()
|
|
271
261
|
self.device = device
|
|
272
262
|
self.filter_duplicates = filter_duplicates
|
|
273
263
|
self.sync_timeout = sync_timeout
|
|
274
|
-
self.broadcasts: Dict[bumble.hci.Address,
|
|
275
|
-
self.status_message = ''
|
|
264
|
+
self.broadcasts: Dict[bumble.hci.Address, BroadcastScanner.Broadcast] = {}
|
|
276
265
|
device.on('advertisement', self.on_advertisement)
|
|
277
266
|
|
|
278
|
-
async def
|
|
279
|
-
self.status_message = color('Scanning...', 'green')
|
|
267
|
+
async def start(self) -> None:
|
|
280
268
|
await self.device.start_scanning(
|
|
281
269
|
active=False,
|
|
282
270
|
filter_duplicates=False,
|
|
283
271
|
)
|
|
284
272
|
|
|
285
|
-
def
|
|
286
|
-
|
|
287
|
-
print('\033[H')
|
|
288
|
-
print('\033[0J')
|
|
289
|
-
print('\033[H')
|
|
290
|
-
|
|
291
|
-
# Print the status message
|
|
292
|
-
print(self.status_message)
|
|
293
|
-
print("==========================================")
|
|
294
|
-
|
|
295
|
-
# Print all broadcasts
|
|
296
|
-
for broadcast in self.broadcasts.values():
|
|
297
|
-
broadcast.print()
|
|
298
|
-
print('------------------------------------------')
|
|
299
|
-
|
|
300
|
-
# Clear the screen to the bottom
|
|
301
|
-
print('\033[0J')
|
|
273
|
+
async def stop(self) -> None:
|
|
274
|
+
await self.device.stop_scanning()
|
|
302
275
|
|
|
303
276
|
def on_advertisement(self, advertisement: bumble.device.Advertisement) -> None:
|
|
304
277
|
if (
|
|
@@ -311,7 +284,6 @@ class BroadcastDiscoverer:
|
|
|
311
284
|
|
|
312
285
|
if broadcast := self.broadcasts.get(advertisement.address):
|
|
313
286
|
broadcast.update(advertisement)
|
|
314
|
-
self.refresh()
|
|
315
287
|
return
|
|
316
288
|
|
|
317
289
|
bumble.utils.AsyncRunner.spawn(
|
|
@@ -331,41 +303,318 @@ class BroadcastDiscoverer:
|
|
|
331
303
|
name,
|
|
332
304
|
periodic_advertising_sync,
|
|
333
305
|
)
|
|
334
|
-
broadcast.on('change', self.refresh)
|
|
335
306
|
broadcast.update(advertisement)
|
|
336
307
|
self.broadcasts[advertisement.address] = broadcast
|
|
337
308
|
periodic_advertising_sync.on('loss', lambda: self.on_broadcast_loss(broadcast))
|
|
338
|
-
self.
|
|
339
|
-
f'+Found {len(self.broadcasts)} broadcasts', 'green'
|
|
340
|
-
)
|
|
341
|
-
self.refresh()
|
|
309
|
+
self.emit('new_broadcast', broadcast)
|
|
342
310
|
|
|
343
311
|
def on_broadcast_loss(self, broadcast: Broadcast) -> None:
|
|
344
312
|
del self.broadcasts[broadcast.sync.advertiser_address]
|
|
345
313
|
bumble.utils.AsyncRunner.spawn(broadcast.sync.terminate())
|
|
314
|
+
self.emit('broadcast_loss', broadcast)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
class PrintingBroadcastScanner:
|
|
318
|
+
def __init__(
|
|
319
|
+
self, device: bumble.device.Device, filter_duplicates: bool, sync_timeout: float
|
|
320
|
+
) -> None:
|
|
321
|
+
self.scanner = BroadcastScanner(device, filter_duplicates, sync_timeout)
|
|
322
|
+
self.scanner.on('new_broadcast', self.on_new_broadcast)
|
|
323
|
+
self.scanner.on('broadcast_loss', self.on_broadcast_loss)
|
|
324
|
+
self.scanner.on('update', self.refresh)
|
|
325
|
+
self.status_message = ''
|
|
326
|
+
|
|
327
|
+
async def start(self) -> None:
|
|
328
|
+
self.status_message = color('Scanning...', 'green')
|
|
329
|
+
await self.scanner.start()
|
|
330
|
+
|
|
331
|
+
def on_new_broadcast(self, broadcast: BroadcastScanner.Broadcast) -> None:
|
|
346
332
|
self.status_message = color(
|
|
347
|
-
f'
|
|
333
|
+
f'+Found {len(self.scanner.broadcasts)} broadcasts', 'green'
|
|
348
334
|
)
|
|
335
|
+
broadcast.on('change', self.refresh)
|
|
336
|
+
broadcast.on('update', self.refresh)
|
|
349
337
|
self.refresh()
|
|
350
338
|
|
|
339
|
+
def on_broadcast_loss(self, broadcast: BroadcastScanner.Broadcast) -> None:
|
|
340
|
+
self.status_message = color(
|
|
341
|
+
f'-Found {len(self.scanner.broadcasts)} broadcasts', 'green'
|
|
342
|
+
)
|
|
343
|
+
self.refresh()
|
|
351
344
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
)
|
|
345
|
+
def refresh(self) -> None:
|
|
346
|
+
# Clear the screen from the top
|
|
347
|
+
print('\033[H')
|
|
348
|
+
print('\033[0J')
|
|
349
|
+
print('\033[H')
|
|
350
|
+
|
|
351
|
+
# Print the status message
|
|
352
|
+
print(self.status_message)
|
|
353
|
+
print("==========================================")
|
|
354
|
+
|
|
355
|
+
# Print all broadcasts
|
|
356
|
+
for broadcast in self.scanner.broadcasts.values():
|
|
357
|
+
broadcast.print()
|
|
358
|
+
print('------------------------------------------')
|
|
359
|
+
|
|
360
|
+
# Clear the screen to the bottom
|
|
361
|
+
print('\033[0J')
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
@contextlib.asynccontextmanager
|
|
365
|
+
async def create_device(transport: str) -> AsyncGenerator[bumble.device.Device, Any]:
|
|
355
366
|
async with await bumble.transport.open_transport(transport) as (
|
|
356
367
|
hci_source,
|
|
357
368
|
hci_sink,
|
|
358
369
|
):
|
|
359
|
-
|
|
360
|
-
AURACAST_DEFAULT_DEVICE_NAME,
|
|
361
|
-
AURACAST_DEFAULT_DEVICE_ADDRESS,
|
|
370
|
+
device_config = bumble.device.DeviceConfiguration(
|
|
371
|
+
name=AURACAST_DEFAULT_DEVICE_NAME,
|
|
372
|
+
address=AURACAST_DEFAULT_DEVICE_ADDRESS,
|
|
373
|
+
keystore='JsonKeyStore',
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
device = bumble.device.Device.from_config_with_hci(
|
|
377
|
+
device_config,
|
|
362
378
|
hci_source,
|
|
363
379
|
hci_sink,
|
|
364
380
|
)
|
|
365
381
|
await device.power_on()
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
382
|
+
|
|
383
|
+
yield device
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
async def find_broadcast_by_name(
|
|
387
|
+
device: bumble.device.Device, name: Optional[str]
|
|
388
|
+
) -> BroadcastScanner.Broadcast:
|
|
389
|
+
result = asyncio.get_running_loop().create_future()
|
|
390
|
+
|
|
391
|
+
def on_broadcast_change(broadcast: BroadcastScanner.Broadcast) -> None:
|
|
392
|
+
if broadcast.basic_audio_announcement and not result.done():
|
|
393
|
+
print(color('Broadcast basic audio announcement received', 'green'))
|
|
394
|
+
result.set_result(broadcast)
|
|
395
|
+
|
|
396
|
+
def on_new_broadcast(broadcast: BroadcastScanner.Broadcast) -> None:
|
|
397
|
+
if name is None or broadcast.name == name:
|
|
398
|
+
print(color('Broadcast found:', 'green'), broadcast.name)
|
|
399
|
+
broadcast.on('change', lambda: on_broadcast_change(broadcast))
|
|
400
|
+
return
|
|
401
|
+
|
|
402
|
+
print(color(f'Skipping broadcast {broadcast.name}'))
|
|
403
|
+
|
|
404
|
+
scanner = BroadcastScanner(device, False, AURACAST_DEFAULT_SYNC_TIMEOUT)
|
|
405
|
+
scanner.on('new_broadcast', on_new_broadcast)
|
|
406
|
+
await scanner.start()
|
|
407
|
+
|
|
408
|
+
broadcast = await result
|
|
409
|
+
await scanner.stop()
|
|
410
|
+
|
|
411
|
+
return broadcast
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
async def run_scan(
|
|
415
|
+
filter_duplicates: bool, sync_timeout: float, transport: str
|
|
416
|
+
) -> None:
|
|
417
|
+
async with create_device(transport) as device:
|
|
418
|
+
if not device.supports_le_periodic_advertising:
|
|
419
|
+
print(color('Periodic advertising not supported', 'red'))
|
|
420
|
+
return
|
|
421
|
+
|
|
422
|
+
scanner = PrintingBroadcastScanner(device, filter_duplicates, sync_timeout)
|
|
423
|
+
await scanner.start()
|
|
424
|
+
await asyncio.get_running_loop().create_future()
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
async def run_assist(
|
|
428
|
+
broadcast_name: Optional[str],
|
|
429
|
+
source_id: Optional[int],
|
|
430
|
+
command: str,
|
|
431
|
+
transport: str,
|
|
432
|
+
address: str,
|
|
433
|
+
) -> None:
|
|
434
|
+
async with create_device(transport) as device:
|
|
435
|
+
if not device.supports_le_periodic_advertising:
|
|
436
|
+
print(color('Periodic advertising not supported', 'red'))
|
|
437
|
+
return
|
|
438
|
+
|
|
439
|
+
# Connect to the server
|
|
440
|
+
print(f'=== Connecting to {address}...')
|
|
441
|
+
connection = await device.connect(address)
|
|
442
|
+
peer = bumble.device.Peer(connection)
|
|
443
|
+
print(f'=== Connected to {peer}')
|
|
444
|
+
|
|
445
|
+
print("+++ Encrypting connection...")
|
|
446
|
+
await peer.connection.encrypt()
|
|
447
|
+
print("+++ Connection encrypted")
|
|
448
|
+
|
|
449
|
+
# Request a larger MTU
|
|
450
|
+
mtu = AURACAST_DEFAULT_ATT_MTU
|
|
451
|
+
print(color(f'$$$ Requesting MTU={mtu}', 'yellow'))
|
|
452
|
+
await peer.request_mtu(mtu)
|
|
453
|
+
|
|
454
|
+
# Get the BASS service
|
|
455
|
+
bass = await peer.discover_service_and_create_proxy(
|
|
456
|
+
bumble.profiles.bass.BroadcastAudioScanServiceProxy
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
# Check that the service was found
|
|
460
|
+
if not bass:
|
|
461
|
+
print(color('!!! Broadcast Audio Scan Service not found', 'red'))
|
|
462
|
+
return
|
|
463
|
+
|
|
464
|
+
# Subscribe to and read the broadcast receive state characteristics
|
|
465
|
+
for i, broadcast_receive_state in enumerate(bass.broadcast_receive_states):
|
|
466
|
+
try:
|
|
467
|
+
await broadcast_receive_state.subscribe(
|
|
468
|
+
lambda value, i=i: print(
|
|
469
|
+
f"{color(f'Broadcast Receive State Update [{i}]:', 'green')} {value}"
|
|
470
|
+
)
|
|
471
|
+
)
|
|
472
|
+
except bumble.core.ProtocolError as error:
|
|
473
|
+
print(
|
|
474
|
+
color(
|
|
475
|
+
f'!!! Failed to subscribe to Broadcast Receive State characteristic:',
|
|
476
|
+
'red',
|
|
477
|
+
),
|
|
478
|
+
error,
|
|
479
|
+
)
|
|
480
|
+
value = await broadcast_receive_state.read_value()
|
|
481
|
+
print(
|
|
482
|
+
f'{color(f"Initial Broadcast Receive State [{i}]:", "green")} {value}'
|
|
483
|
+
)
|
|
484
|
+
|
|
485
|
+
if command == 'monitor-state':
|
|
486
|
+
await peer.sustain()
|
|
487
|
+
return
|
|
488
|
+
|
|
489
|
+
if command == 'add-source':
|
|
490
|
+
# Find the requested broadcast
|
|
491
|
+
await bass.remote_scan_started()
|
|
492
|
+
if broadcast_name:
|
|
493
|
+
print(color('Scanning for broadcast:', 'cyan'), broadcast_name)
|
|
494
|
+
else:
|
|
495
|
+
print(color('Scanning for any broadcast', 'cyan'))
|
|
496
|
+
broadcast = await find_broadcast_by_name(device, broadcast_name)
|
|
497
|
+
|
|
498
|
+
if broadcast.broadcast_audio_announcement is None:
|
|
499
|
+
print(color('No broadcast audio announcement found', 'red'))
|
|
500
|
+
return
|
|
501
|
+
|
|
502
|
+
if (
|
|
503
|
+
broadcast.basic_audio_announcement is None
|
|
504
|
+
or not broadcast.basic_audio_announcement.subgroups
|
|
505
|
+
):
|
|
506
|
+
print(color('No subgroups found', 'red'))
|
|
507
|
+
return
|
|
508
|
+
|
|
509
|
+
# Add the source
|
|
510
|
+
print(color('Adding source:', 'blue'), broadcast.sync.advertiser_address)
|
|
511
|
+
await bass.add_source(
|
|
512
|
+
broadcast.sync.advertiser_address,
|
|
513
|
+
broadcast.sync.sid,
|
|
514
|
+
broadcast.broadcast_audio_announcement.broadcast_id,
|
|
515
|
+
bumble.profiles.bass.PeriodicAdvertisingSyncParams.SYNCHRONIZE_TO_PA_PAST_AVAILABLE,
|
|
516
|
+
0xFFFF,
|
|
517
|
+
[
|
|
518
|
+
bumble.profiles.bass.SubgroupInfo(
|
|
519
|
+
bumble.profiles.bass.SubgroupInfo.ANY_BIS,
|
|
520
|
+
bytes(broadcast.basic_audio_announcement.subgroups[0].metadata),
|
|
521
|
+
)
|
|
522
|
+
],
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
# Initiate a PA Sync Transfer
|
|
526
|
+
await broadcast.sync.transfer(peer.connection)
|
|
527
|
+
|
|
528
|
+
# Notify the sink that we're done scanning.
|
|
529
|
+
await bass.remote_scan_stopped()
|
|
530
|
+
|
|
531
|
+
await peer.sustain()
|
|
532
|
+
return
|
|
533
|
+
|
|
534
|
+
if command == 'modify-source':
|
|
535
|
+
if source_id is None:
|
|
536
|
+
print(color('!!! modify-source requires --source-id'))
|
|
537
|
+
return
|
|
538
|
+
|
|
539
|
+
# Find the requested broadcast
|
|
540
|
+
await bass.remote_scan_started()
|
|
541
|
+
if broadcast_name:
|
|
542
|
+
print(color('Scanning for broadcast:', 'cyan'), broadcast_name)
|
|
543
|
+
else:
|
|
544
|
+
print(color('Scanning for any broadcast', 'cyan'))
|
|
545
|
+
broadcast = await find_broadcast_by_name(device, broadcast_name)
|
|
546
|
+
|
|
547
|
+
if broadcast.broadcast_audio_announcement is None:
|
|
548
|
+
print(color('No broadcast audio announcement found', 'red'))
|
|
549
|
+
return
|
|
550
|
+
|
|
551
|
+
if (
|
|
552
|
+
broadcast.basic_audio_announcement is None
|
|
553
|
+
or not broadcast.basic_audio_announcement.subgroups
|
|
554
|
+
):
|
|
555
|
+
print(color('No subgroups found', 'red'))
|
|
556
|
+
return
|
|
557
|
+
|
|
558
|
+
# Modify the source
|
|
559
|
+
print(
|
|
560
|
+
color('Modifying source:', 'blue'),
|
|
561
|
+
source_id,
|
|
562
|
+
)
|
|
563
|
+
await bass.modify_source(
|
|
564
|
+
source_id,
|
|
565
|
+
bumble.profiles.bass.PeriodicAdvertisingSyncParams.SYNCHRONIZE_TO_PA_PAST_NOT_AVAILABLE,
|
|
566
|
+
0xFFFF,
|
|
567
|
+
[
|
|
568
|
+
bumble.profiles.bass.SubgroupInfo(
|
|
569
|
+
bumble.profiles.bass.SubgroupInfo.ANY_BIS,
|
|
570
|
+
bytes(broadcast.basic_audio_announcement.subgroups[0].metadata),
|
|
571
|
+
)
|
|
572
|
+
],
|
|
573
|
+
)
|
|
574
|
+
await peer.sustain()
|
|
575
|
+
return
|
|
576
|
+
|
|
577
|
+
if command == 'remove-source':
|
|
578
|
+
if source_id is None:
|
|
579
|
+
print(color('!!! remove-source requires --source-id'))
|
|
580
|
+
return
|
|
581
|
+
|
|
582
|
+
# Remove the source
|
|
583
|
+
print(color('Removing source:', 'blue'), source_id)
|
|
584
|
+
await bass.remove_source(source_id)
|
|
585
|
+
await peer.sustain()
|
|
586
|
+
return
|
|
587
|
+
|
|
588
|
+
print(color(f'!!! invalid command {command}'))
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
async def run_pair(transport: str, address: str) -> None:
|
|
592
|
+
async with create_device(transport) as device:
|
|
593
|
+
|
|
594
|
+
# Connect to the server
|
|
595
|
+
print(f'=== Connecting to {address}...')
|
|
596
|
+
async with device.connect_as_gatt(address) as peer:
|
|
597
|
+
print(f'=== Connected to {peer}')
|
|
598
|
+
|
|
599
|
+
print("+++ Initiating pairing...")
|
|
600
|
+
await peer.connection.pair()
|
|
601
|
+
print("+++ Paired")
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
def run_async(async_command: Coroutine) -> None:
|
|
605
|
+
try:
|
|
606
|
+
asyncio.run(async_command)
|
|
607
|
+
except bumble.core.ProtocolError as error:
|
|
608
|
+
if error.error_namespace == 'att' and error.error_code in list(
|
|
609
|
+
bumble.profiles.bass.ApplicationError
|
|
610
|
+
):
|
|
611
|
+
message = bumble.profiles.bass.ApplicationError(error.error_code).name
|
|
612
|
+
else:
|
|
613
|
+
message = str(error)
|
|
614
|
+
|
|
615
|
+
print(
|
|
616
|
+
color('!!! An error occurred while executing the command:', 'red'), message
|
|
617
|
+
)
|
|
369
618
|
|
|
370
619
|
|
|
371
620
|
# -----------------------------------------------------------------------------
|
|
@@ -379,7 +628,7 @@ def auracast(
|
|
|
379
628
|
ctx.ensure_object(dict)
|
|
380
629
|
|
|
381
630
|
|
|
382
|
-
@auracast.command('
|
|
631
|
+
@auracast.command('scan')
|
|
383
632
|
@click.option(
|
|
384
633
|
'--filter-duplicates', is_flag=True, default=False, help='Filter duplicates'
|
|
385
634
|
)
|
|
@@ -387,14 +636,50 @@ def auracast(
|
|
|
387
636
|
'--sync-timeout',
|
|
388
637
|
metavar='SYNC_TIMEOUT',
|
|
389
638
|
type=float,
|
|
390
|
-
default=
|
|
639
|
+
default=AURACAST_DEFAULT_SYNC_TIMEOUT,
|
|
391
640
|
help='Sync timeout (in seconds)',
|
|
392
641
|
)
|
|
393
642
|
@click.argument('transport')
|
|
394
643
|
@click.pass_context
|
|
395
|
-
def
|
|
396
|
-
"""
|
|
397
|
-
|
|
644
|
+
def scan(ctx, filter_duplicates, sync_timeout, transport):
|
|
645
|
+
"""Scan for public broadcasts"""
|
|
646
|
+
run_async(run_scan(filter_duplicates, sync_timeout, transport))
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
@auracast.command('assist')
|
|
650
|
+
@click.option(
|
|
651
|
+
'--broadcast-name',
|
|
652
|
+
metavar='BROADCAST_NAME',
|
|
653
|
+
help='Broadcast Name to tune to',
|
|
654
|
+
)
|
|
655
|
+
@click.option(
|
|
656
|
+
'--source-id',
|
|
657
|
+
metavar='SOURCE_ID',
|
|
658
|
+
type=int,
|
|
659
|
+
help='Source ID (for remove-source command)',
|
|
660
|
+
)
|
|
661
|
+
@click.option(
|
|
662
|
+
'--command',
|
|
663
|
+
type=click.Choice(
|
|
664
|
+
['monitor-state', 'add-source', 'modify-source', 'remove-source']
|
|
665
|
+
),
|
|
666
|
+
required=True,
|
|
667
|
+
)
|
|
668
|
+
@click.argument('transport')
|
|
669
|
+
@click.argument('address')
|
|
670
|
+
@click.pass_context
|
|
671
|
+
def assist(ctx, broadcast_name, source_id, command, transport, address):
|
|
672
|
+
"""Scan for broadcasts on behalf of a audio server"""
|
|
673
|
+
run_async(run_assist(broadcast_name, source_id, command, transport, address))
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
@auracast.command('pair')
|
|
677
|
+
@click.argument('transport')
|
|
678
|
+
@click.argument('address')
|
|
679
|
+
@click.pass_context
|
|
680
|
+
def pair(ctx, transport, address):
|
|
681
|
+
"""Pair with an audio server"""
|
|
682
|
+
run_async(run_pair(transport, address))
|
|
398
683
|
|
|
399
684
|
|
|
400
685
|
def main():
|
|
@@ -63,6 +63,7 @@ from bumble.transport import open_transport_or_link
|
|
|
63
63
|
from bumble.gatt import Characteristic, Service, CharacteristicDeclaration, Descriptor
|
|
64
64
|
from bumble.gatt_client import CharacteristicProxy
|
|
65
65
|
from bumble.hci import (
|
|
66
|
+
Address,
|
|
66
67
|
HCI_Constant,
|
|
67
68
|
HCI_LE_1M_PHY,
|
|
68
69
|
HCI_LE_2M_PHY,
|
|
@@ -289,11 +290,7 @@ class ConsoleApp:
|
|
|
289
290
|
device_config, hci_source, hci_sink
|
|
290
291
|
)
|
|
291
292
|
else:
|
|
292
|
-
random_address = (
|
|
293
|
-
f"{random.randint(192,255):02X}" # address is static random
|
|
294
|
-
)
|
|
295
|
-
for random_byte in random.sample(range(255), 5):
|
|
296
|
-
random_address += f":{random_byte:02X}"
|
|
293
|
+
random_address = Address.generate_static_address()
|
|
297
294
|
self.append_to_log(f"Setting random address: {random_address}")
|
|
298
295
|
self.device = Device.with_hci(
|
|
299
296
|
'Bumble', random_address, hci_source, hci_sink
|
|
@@ -503,21 +500,9 @@ class ConsoleApp:
|
|
|
503
500
|
self.show_error('not connected')
|
|
504
501
|
return
|
|
505
502
|
|
|
506
|
-
|
|
507
|
-
self.
|
|
508
|
-
|
|
509
|
-
self.append_to_output(
|
|
510
|
-
f'found {len(self.connected_peer.services)} services,'
|
|
511
|
-
' discovering characteristics...'
|
|
512
|
-
)
|
|
513
|
-
await self.connected_peer.discover_characteristics()
|
|
514
|
-
self.append_to_output('found characteristics, discovering descriptors...')
|
|
515
|
-
for service in self.connected_peer.services:
|
|
516
|
-
for characteristic in service.characteristics:
|
|
517
|
-
await self.connected_peer.discover_descriptors(characteristic)
|
|
518
|
-
self.append_to_output('discovery completed')
|
|
519
|
-
|
|
520
|
-
self.show_remote_services(self.connected_peer.services)
|
|
503
|
+
self.append_to_output('Service Discovery starting...')
|
|
504
|
+
await self.connected_peer.discover_all()
|
|
505
|
+
self.append_to_output('Service Discovery done!')
|
|
521
506
|
|
|
522
507
|
async def discover_attributes(self):
|
|
523
508
|
if not self.connected_peer:
|