Skip to content

How can you force a disconnect of a BLE client from the server? #387

Open
@SalvaPedraza

Description

@SalvaPedraza

Hi,

I am developing an application where the ESP32 act as server.
Some times if the client disconnect without any information to server (for example, application crash), the server continue in "connected to client" status and it is not advertising and do not accept any other connection.
I would like to do a whatchdog task that it disconnect the client if no activity (read or write) during certain time.
How can I force disconnection from client, so BLE server start advertising and accept new connections?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions