-
Notifications
You must be signed in to change notification settings - Fork 655
Description
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.