Skip to content
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

nordic 9.1.0: restart VM after advertising causes disconnect and (hard?) restart #9432

Closed
dhalbert opened this issue Jul 16, 2024 · 1 comment

Comments

@dhalbert
Copy link
Collaborator

CircuitPython version

Adafruit CircuitPython 9.1.0 on 2024-07-10; Adafruit Feather nRF52840 Express with nRF52840

Code/REPL

from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
import time

ble = BLERadio()
uart = UARTService()
advertisement = ProvideServicesAdvertisement(uart)

while True:
    ble.start_advertising(advertisement)
    while not ble.connected:
        pass

Behavior

code.py output:
Traceback (most recent call last):
  File "code.py", line 13, in <module>
KeyboardInterrupt: 

Code done running.

Press any key to enter the REPL. Use CTRL-D to reload.

Adafruit CircuitPython 9.1.0 on 2024-07-10; Adafruit Feather nRF52840 Express with nRF52840
>>> 

[13:37:44.406] Disconnected
[13:37:45.407] Warning: Could not open tty device (No such file or directory)
[13:37:45.407] Waiting for tty device..
[13:37:47.409] Connected

If these lines are commented out, I don't see the disconnect:

    ble.start_advertising(advertisement)
    while not ble.connected:
        pass

Description

No response

Additional information

No response

@dhalbert dhalbert added this to the 9.1.x milestone Jul 16, 2024
@dhalbert
Copy link
Collaborator Author

Same as #9442.

@dhalbert dhalbert closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant