#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] | conn | Connection Object. |
| [in] | ranging_data_out | Simple buffer to store received ranging data. |
| [in] | ranging_counter | Ranging counter to get. |
| [in] | data_get_complete_cb | Callback called when get ranging data completes. |
- Return values
-
| 0 | If the operation was successful. Otherwise, a negative error code is returned. |