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

◆ bt_fast_pair_info_cb_register()

int bt_fast_pair_info_cb_register ( const struct bt_fast_pair_info_cb cb)

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

Register Fast Pair information callbacks.

This function registers an instance of information callbacks. The registered instance needs to persist in the memory after this function exits, as it is used directly without the copy operation. It is possible to register only one instance of callbacks with this API.

This function can only be called before enabling Fast Pair with the bt_fast_pair_enable API.

This function must be called in the cooperative thread context.

Parameters
cbCallback struct.
Returns
Zero on success or negative error code otherwise