Skip to content

Advertisement Names #164

@MadGeometer

Description

@MadGeometer

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:

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")

Output:

Beginning Scan
None None <Address 57:9e:15:aa:10:4b> True -68 None True
None None <Address 41:4a:36:7d:08:3c> True -72 None True
None None <Address d6:0c:88:89:3b:55> False -65 None False
Scan Complete

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions