#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>
Update the conn pointer of an existing server, based on address.
- Note
- This function can be used when an earlier pairing has been done to this server.
-
srv_store_lock() must be called before accessing this function.
- Parameters
-
| [in] | conn | Pointer to the connection to write. |
| [in] | addr | Address to write. |
- Return values
-
| 0 | Success. |
| -ENOENT | Server not found. |
| -EPERM | Address does not match the connection's peer address. |
| -EACCES | Server already has a different conn assigned. |
| -EALREADY | Server is already assigned to the same conn. |
| Other | negative. Errors from underlying functions. |