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

◆ bt_fast_pair_fmdn_adv_param_set()

int bt_fast_pair_fmdn_adv_param_set ( const struct bt_fast_pair_fmdn_adv_param adv_param)

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

Set the FMDN advertising parameters.

This function sets the advertising parameters. It is recommended to initialize the advertising parameters with this API before you enable Fast Pair with the bt_fast_pair_enable API. Otherwise, the default value BT_FAST_PAIR_FMDN_ADV_PARAM_DEFAULT is used for advertising.

In the Fast Pair disabled state, advertising parameters are accepted without any validation but are subsequently validated during the bt_fast_pair_enable API call.

You can use this function to dynamically update advertising parameters during an ongoing FMDN advertising.

The API user is responsible for adjusting this configuration to their application requirements. The advertising intervals parameters from this API have additional constraints when you enable the Fast Pair advertising together with FMDN advertising (see respective specifications for details). This function does not validate if these constraints are met.

Parameters
adv_paramConfiguration parameters for FMDN advertising. See the bt_fast_pair_fmdn_adv_param for the detailed description.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.