Description
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