![]() |
nRF Connect SDK API 3.3.99
|
| void(* bt_fast_pair_fhn_pf_ranging_mgmt_cb::comm_channel_terminated) (struct bt_conn *conn) |
Communication channel terminated.
This callback is called when the communication channel for managing ranging has been terminated. This occurs on disconnection of the Bluetooth connection or when the Precision Finding module is disabled.
This callback is optional and the application may use it to implement the ranging timeout and clean up the ranging state associated with this connection. If any ranging technologies are still active, the application is responsible for stopping them.
In the case of a communication channel termination due to the disconnected callback from the Zephyr Bluetooth stack, this callback is executed in the cooperative thread context as part of the delayable work item defined in the system workqueue. The cooperative properties of this callback depend on the
CONFIG_SYSTEM_WORKQUEUE_PRIORITY
Kconfig option.
In the case of a communication channel termination due to the bt_fast_pair_disable API call, this callback is executed in the context of the bt_fast_pair_disable API call.
| conn | Connection object. |