nRF Connect SDK API 0.1.0
|
int bt_fast_pair_fmdn_motion_detector_cb_register | ( | const struct bt_fast_pair_fmdn_motion_detector_cb * | cb | ) |
#include <include/bluetooth/services/fast_pair/fmdn.h>
Register motion detector callbacks.
This function registers callbacks to handle motion detector activities defined in the Motion detector feature from the DULT specification. This API can only be used when the
embed:rst:inline :kconfig:option:`CONFIG_BT_FAST_PAIR_FMDN_DULT_MOTION_DETECTOR`
Kconfig option is enabled. If this configuration is active, this function must be called 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).
cb | Motion detector callback structure. |