adafruit / adafruit/Adafruit_CircuitPython_BLE
Advertisement Names
- Dominant language
- Python
- Stars
- 138
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Description
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
None None True -72 None True
None None False -65 None False
Scan Complete
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the sample with ble.start_scan() on the reported QT Py ESP32-S3 setup, using ble_simpletest.py and ble_detailed_scan.py from the examples folder. Trace how scan results populate short_name and complete_name, comparing extended and scan-response advertisements with the reported output. Done means the affected advertisements expose the expected names without relying on ineffective buffer changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100