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

◆ srv_store_add_by_conn()

int srv_store_add_by_conn ( struct bt_conn * conn)

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

Add a server to the storage based on conn.

Note
This function should not be used if the peer uses a resolvable address which has not yet been resolved, or any other changing address type.
srv_store_lock() must be called before accessing this function.
Parameters
[in]connPointer to the connection associated with the server to add, based on address.
Return values
0Success.
-EALREADYThe server already exists.
-ENOMEMOut of memory.
Othernegative. Errors from underlying functions.