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

◆ bt_fast_pair_factory_reset()

int bt_fast_pair_factory_reset ( void  )

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

Perform a reset to the default factory settings for Google Fast Pair Service.

Clears the Fast Pair storage. If the reset operation is interrupted by system reboot or power outage, the reset is automatically resumed at the stage of initializing the Fast Pair storage when calling the bt_fast_pair_enable API. It prevents the Fast Pair storage from ending in unwanted state after the reset interruption.

This function must be called in the cooperative thread context.

If the Find My Network Device extension is enabled, this function can only be called in the disabled state of the Fast Pair module (see the bt_fast_pair_is_ready function).

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