#include <include/bluetooth/services/ras.h>
Subscribe to on-demand ranging data notifications. Required to be called before bt_ras_rreq_cp_get_ranging_data.
- Note
- Calling from BT RX thread may return an error as bt_gatt_subscribe will not block if there are no available TX buffers.
-
On-Demand and Real-time ranging data are not compatible and attempting to subscribe to both at the same time will be rejected by the RAS server.
- Parameters
-
| [in] | conn | Connection Object, which already has associated RREQ context. |
- Return values
-
| 0 | If the operation was successful. Otherwise, a negative error code is returned. |