Skip to content

Support BLE advertising on ESP #5936

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

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jan 28, 2022

Services and characteristics still won't work.

Progress on #5926

Test code (will add to Adafruit_CircuitPython_BLE tomorrow):

# SPDX-FileCopyrightText: 2022 Scott Shawcroft for Adafruit Industries
# SPDX-License-Identifier: MIT

"""
Simple connectable name advertisement. No services.
"""

from adafruit_ble import BLERadio

from adafruit_ble.advertising import Advertisement

ble = BLERadio()
advertisement = Advertisement()
advertisement.short_name = "HELLO"
advertisement.connectable = True

while True:
    print(advertisement)
    ble.start_advertising(advertisement, scan_response=b"")
    while not ble.connected:
        pass
    print("connected")
    while ble.connected:
        pass
    print("disconnected")

Services and characteristics still won't work.

Progress on micropython#5926
@tannewt tannewt added enhancement espressif applies to multiple Espressif chips ble esp32-s3 esp32-c3 labels Jan 28, 2022
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine but not tested! Great progress!

@dhalbert dhalbert merged commit 14ed33c into adafruit:main Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants