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

◆ bt_hogp_handles_assign()

int bt_hogp_handles_assign ( struct bt_gatt_dm *  dm,
struct bt_hogp hogp 
)

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

Assign handlers to the HIDS client instance.

This function should be called when a link with a peer has been established, 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. The GATT attribute handles are provided by the GATT Discovery Manager.

Note
This function starts the report discovery process. Wait for one of the functions in bt_hogp_init_params before using the HIDS object.
Parameters
dmDiscovery object.
hogpHOGP object.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.
(-ENOTSUP)Special error code used when the UUID of the service does not match the expected UUID.