Skip to content

Stopping and restarting Bluetooth would be useful #550

@kevinjwalters

Description

@kevinjwalters

Is your feature request related to a problem? Please describe.
I would like to be able to shutdown Bluetooth and then start it up later.

My reason for doing this is due to the Pi Pico W's odd incompatibility between DMA ADC and using Bluetooth.

It looks like others (like @josh26turner) may wish to shutdown Bluetooth for low power reasons raspberrypi/pico-sdk#1479

Describe the solution you'd like
There's already a btstack_run_loop_trigger_exit() but I don't think this was intended to allow the Bluetooth stack to be shutdown/suspended and then restarted.

I'd like a some example code which uses Bluetooth then stops using Bluetooth triggered by the closing of a connection from another device and then after doing something unrelated starts up the Bluetooth stack again. I'd like that to work on the Pi Pico W. Happy to test there.

Describe alternatives you've considered
None.

Additional context
None.

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