Skip to content

What is the recommended way to shutdown a bluetooth server #536

@stan-sack

Description

@stan-sack

I'm building an application where I only need bluetooth at the start to pass wifi credentials across from a paired phone, after that I want to kill bluetooth and just run wifi. As soon as the bluetooth stack (stack, runner, peripherals, server) goes out of scope the board immediately hangs - I have a separate background task to flash the light while the application is running and that stops as well.

Is what i'm trying to do possible? I don't really see any APIs for shutting things down and none of the examples really do this - they just create the stack and run forever.

I will update this post with a minimal reproduction when I have a chance.

I'm working on an xtensa esp32 if that is relevant.

TIA

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