nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ srv_store_clear_by_conn()

int srv_store_clear_by_conn ( struct bt_conn const *const conn)

#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>

Clear the contents of a server based on conn pointer.

Note
This function can be used in a disconnect callback. Will not clear the address or streams. Must only be called when there are no active connections.
srv_store_lock() must be called before accessing this function.
Parameters
[in]connConnection to the server to be cleared.
Return values
0Success, negative error code on failure.
Othernegative. Errors from underlying functions.