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

◆ stop_ranging_request

void(* bt_fast_pair_fhn_pf_ranging_mgmt_cb::stop_ranging_request) (struct bt_conn *conn, uint16_t ranging_tech_bm)

Stop Ranging Request received.

This callback is mandatory. It is called when a Stop Ranging message is received from the connected peer. The application must stop the specified ranging technologies and respond using the bt_fast_pair_fhn_pf_stop_ranging_response_send API.

The response can be sent asynchronously if the teardown of certain ranging technologies requires time to complete. The ranging_tech_bm parameter contains the bitmask of the ranging technologies to stop.

This callback is executed in the cooperative thread context. You can learn about the exact thread context by analyzing the

CONFIG_BT_RECV_CONTEXT 

Kconfig option. By default, this callback is executed in the Bluetooth-specific workqueue thread (

CONFIG_BT_RECV_WORKQ_BT 

).

Parameters
connConnection object.
ranging_tech_bmBitmask of the ranging technologies to stop, composed of bt_fast_pair_fhn_pf_ranging_tech_id bit positions.