You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The advertisements returned by ble.start_scan() are missing short_name and complete_name. This happens in the ble_simpletest.py and ble_detailed_scan.py in the examples folder. Setting extended=true and increasing buffer_size doesn't help.
Any ideas?
Thanks,
Mike
CircuitPython Info:
Adafruit CircuitPython 7.3.0-beta.2-6-gbf0e1fafa on 2022-05-02; Adafruit QT Py ESP32-S3 no psram with ESP32S3
Board ID:adafruit_qtpy_esp32s3_nopsram
Sample code:
from adafruit_ble import BLERadio
ble = BLERadio()
print("Beginning Scan")
foundAddresses = set()
for adv in ble.start_scan(extended=True, buffer_size=2048, timeout=5):
addr = adv.address
if addr not in foundAddresses:
foundAddresses.add(addr)
print(adv.short_name, adv.complete_name, adv.address, adv.connectable, adv.rssi, adv.appearance, adv.scan_response)
ble.stop_scan()
print("Scan Complete")
Yes, the devices (one Macbook Pro, one iPad, and one iPhone) are indeed broadcasting their names. In fact, the names are displayed in Bluefruit Connect and nRF Connect, but not in the output from the sample code.
I'd recommend printing all of the advertisements. CircuitPython doesn't join the advertisement with scan response so you are at least missing half of the first two. IIRC you can print the raw advertisement with bytes(adv) too.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
The advertisements returned by ble.start_scan() are missing short_name and complete_name. This happens in the ble_simpletest.py and ble_detailed_scan.py in the examples folder. Setting extended=true and increasing buffer_size doesn't help.
Any ideas?
Thanks,
Mike
CircuitPython Info:
Sample code:
Output:
The text was updated successfully, but these errors were encountered: