#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] | addr | Pointer to the address associated with the server to add. |
- Return values
-
| 0 | Success. |
| -EALREADY | The server already exists. |
| -ENOMEM | Out of memory. |
| Other | negative. Errors from underlying functions. |