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

◆ bt_fast_pair_fmdn_ring_cb_register()

int bt_fast_pair_fmdn_ring_cb_register ( const struct bt_fast_pair_fmdn_ring_cb cb)

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

Register the ringing callbacks in the FMDN module.

This function registers the ringing callbacks. If you declare at least one ringing component using the

embed:rst:inline :kconfig:option:`CONFIG_BT_FAST_PAIR_FMDN_RING_COMP` 

Kconfig choice option, you shall call this API before you enable Fast Pair with the bt_fast_pair_enable function. Otherwise, the enable operation fails.

You can call this function only in the disabled state of the FMDN module (see bt_fast_pair_is_ready function).

Parameters
cbRinging callback structure.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.