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

◆ srv_store_conn_update()

int srv_store_conn_update ( struct bt_conn * conn,
bt_addr_le_t const *const addr )

#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]connPointer to the connection to write.
[in]addrAddress to write.
Return values
0Success.
-ENOENTServer not found.
-EPERMAddress does not match the connection's peer address.
-EACCESServer already has a different conn assigned.
-EALREADYServer is already assigned to the same conn.
Othernegative. Errors from underlying functions.