Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: No adapter available #187

Open
Cyberbulat opened this issue May 30, 2023 · 1 comment
Open

RuntimeError: No adapter available #187

Cyberbulat opened this issue May 30, 2023 · 1 comment

Comments

@Cyberbulat
Copy link

Cyberbulat commented May 30, 2023

my code is one off the samples:

# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT

"""
This example scans for any BLE advertisements and prints one advertisement and one scan response
from every device found.
"""

from adafruit_ble import BLERadio

ble = BLERadio()
print("scanning")
found = set()
scan_responses = set()
for advertisement in ble.start_scan():
    addr = advertisement.address
    if advertisement.scan_response and addr not in scan_responses:
        scan_responses.add(addr)
    elif not advertisement.scan_response and addr not in found:
        found.add(addr)
    else:
        continue
    print(addr, advertisement)
    print("\t" + repr(advertisement))
    print()

print("scan done")
-------------------------------------------------------------------------------------------------------------------------------------------------
--/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/--
-------------------------------------------------------------------------------------------------------------------------------------------------

Now then the error is how its says in the title and with all the samples it dosent work, i have the leastest version off the pacages and circuit python and its on com7 if it helps, Sorry if its easy to fix i used micropython before now im useing it on the pico w

@tannewt
Copy link
Member

tannewt commented May 30, 2023

We don't support BLE on the Pico W yet. The existing _bleio is there to support an external ESP32 "AirLift" module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants