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

◆ bt_le_adv_prov_fast_pair_set_battery_mode()

int bt_le_adv_prov_fast_pair_set_battery_mode ( enum bt_fast_pair_adv_battery_mode mode)

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

Set advertising battery mode in Fast Pair not dicoverable advertising.

This API can only be used when the

CONFIG_BT_FAST_PAIR_BN 

Kconfig option is enabled. With this Kconfig option disabled, battery data is not included in the advertising packet.

To prevent tracking, the Fast Pair Provider should not include battery data in the advertising packet all the time.

User shall make sure that this function is not called while Fast Pair advertising data provider is providing advertising data.

Parameters
[in]modeAdvertising battery mode.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.