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

◆ bt_ams_handles_assign()

int bt_ams_handles_assign ( struct bt_gatt_dm *  dm,
struct bt_ams_client ams_c 
)

#include <include/bluetooth/services/ams_client.h>

Assign handles to the AMS Client instance.

Call this function when a link has been established with a peer to associate the link to this instance of the module. This makes it possible to handle several links and associate each link to a particular instance of this module.

Parameters
[in]dmDiscovery object.
[in,out]ams_cAMS client instance.
Return values
0If the operation is successful. Otherwise, a (negative) error code is returned.