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

◆ bt_cts_handles_assign()

int bt_cts_handles_assign ( struct bt_gatt_dm * dm,
struct bt_cts_client * cts_c )

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

Function for assigning handles to this instance of cts_c.

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.
[out]cts_cCurrent Time Service client structure.
Return values
0If the operation is successful. Otherwise, a (negative) error code is returned.