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

◆ bt_fast_pair_fhn_pf_ranging_config_response_send()

int bt_fast_pair_fhn_pf_ranging_config_response_send ( struct bt_conn * conn,
uint16_t ranging_tech_bm )

#include <include/bluetooth/fast_pair/fhn/pf/pf.h>

Send a Ranging Configuration Response message.

This function sends a Ranging Configuration Response message over the Bluetooth GATT Beacon Actions characteristic to the connected peer. It should be called after receiving the bt_fast_pair_fhn_pf_ranging_mgmt_cb::ranging_config_request callback to confirm which ranging technologies were successfully configured and started.

Calling this function in the wrong context, that is without the preceding ranging configuration request callback, will result in an error. Indicating the ranging technologies in the ranging_tech_bm parameter that were not requested will also result in an error.

It is possible to call this function asynchronously outside of the callback context, as the configuration and starting of certain ranging technologies may require time to complete.

Parameters
connConnection object.
ranging_tech_bmBitmask of the ranging technologies that were successfully configured and started, composed of bt_fast_pair_fhn_pf_ranging_tech_id bit positions.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.