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

◆ bt_ras_rreq_on_demand_rd_subscribe()

int bt_ras_rreq_on_demand_rd_subscribe ( struct bt_conn * conn)

#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]connConnection Object, which already has associated RREQ context.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.