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

◆ bt_ras_rreq_cp_get_ranging_data()

int bt_ras_rreq_cp_get_ranging_data ( struct bt_conn * conn,
struct net_buf_simple * ranging_data_out,
uint16_t ranging_counter,
bt_ras_rreq_ranging_data_received_t data_get_complete_cb )

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

Get ranging data for given ranging counter.

Note
This should only be called after receiving a ranging data ready callback and when subscribed to ondemand ranging data and RAS-CP.
Using this API is not allowed when the RAS server uses real-time ranging data.
Parameters
[in]connConnection Object.
[in]ranging_data_outSimple buffer to store received ranging data.
[in]ranging_counterRanging counter to get.
[in]data_get_complete_cbCallback called when get ranging data completes.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.