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

◆ srv_store_add_by_addr()

int srv_store_add_by_addr ( const bt_addr_le_t * addr)

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

Add a server to the storage based on address.

Note
This function can be used when getting addresses from bonding information. At this point, there will only be an address associated with the server, no conn pointer, and so on. Hence, you must call srv_store_conn_update() when a connection is established.
srv_store_lock() must be called before accessing this function.
Parameters
[in]addrPointer to the address associated with the server to add.
Return values
0Success.
-EALREADYThe server already exists.
-ENOMEMOut of memory.
Othernegative. Errors from underlying functions.