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

◆ bt_bas_handles_assign()

int bt_bas_handles_assign ( struct bt_gatt_dm * dm,
struct bt_bas_client * bas )

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

Assign handles to the BAS Client instance.

This function should be called when a connection with a peer has been established, to associate the connection to this instance of the module. This makes it possible to handle multiple connections and associate each connection to a particular instance of this module. The GATT attribute handles are provided by the GATT Discovery Manager.

Parameters
dmDiscovery object.
basBAS Client 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.