10000 What causes the "NotImplementedError" in my Python code when I try to start advertising? · Issue #160 · adafruit/Adafruit_CircuitPython_BLE · GitHub
[go: up one dir, main page]

Skip to content
What causes the "NotImplementedError" in my Python code when I try to start advertising? #160
Open
@Desertgeek

Description

@Desertgeek

I am working with Adafruit_CircuitPython_BLE on a MacBook running Monterey 12.3. The code below is an example from the Adafruit library (ble_advertising_simpletest.py).

`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
`
When I get to the "ble.start_advertising" line I get the "NotImplementedError".
The MacBook should support BLE since it communicates with my iPhone, right?

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

      0