Skip to content

Would like to ensure all data is sent over the air on bt_conn_disconnect. #49216

@evenl

Description

@evenl

It would be nice to have a way to do a gracefully disconnect of a ble connection, by that I mean that any data queued in the stack should be sent over the air before the connection is disconnected.

In our case we disconnects at regular interval because we use the radio to do some sync operation, when the sync operation is complete we start advertising again and then the client connects again. While connected we stream data and we want to ensure that all of the packets in the queue is sent over the air before we actually disconnect.

I really don't care how this is implemented, it could be a parameter to bt_conn_disconnect to tell it to flush the data before returning, or a separate function to check the status/flush the data or a callback.

.even

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions