![]() |
nRF Connect SDK API 3.3.99
|
| void bt_fast_pair_adv_manager_request | ( | struct bt_fast_pair_adv_manager_trigger * | trigger, |
| bool | enable ) |
#include <include/bluetooth/fast_pair/adv_manager.h>
Request turning on the Fast Pair advertising.
The Fast Pair advertising will be turned off only when no trigger has requested to keep the Fast Pair advertising on.
The Fast Pair Advertising Manager module may change its operating mode in response to the requesting trigger configuration (see the bt_fast_pair_adv_manager_trigger_config). For example, this module operates in the pairing mode if at least one advertising trigger is enabled with this function and is configured for the pairing mode. For more details on how other fields from the bt_fast_pair_adv_manager_trigger_config structure affect the advertising state of the module, see the structure documentation.
The pairing mode state changes of the Fast Pair Advertising Manager module cause the Fast Pair advertising payload update. Apart from this exception, the activation of the trigger when the Fast Pair advertising is already enabled do not cause the advertising payload update. The bt_fast_pair_adv_manager_payload_refresh can be used to refresh the payload instantly if necessary.
You can mark the trigger as enabled and set its configuration using the bt_fast_pair_adv_manager_request function when the Fast Pair Advertising Manager module is still disabled.
| trigger | Trigger identifier. |
| enable | true to request to turn on the Fast Pair advertising. false to remove request to turn on the Fast Pair advertising. |