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

◆ bt_rscs_measurement_send()

int bt_rscs_measurement_send ( struct bt_conn *  conn,
const struct bt_rscs_measurement measurement 
)

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

Function for sending Running Speed and Cadence measurement.

The application calls this function after having performed a Running Speed and Cadence measurement. If notification has been enabled, the measurement data is encoded and sent to the client.

Parameters
[in]connPointer to connection object, or NULL if sent to all connected peers.
[in]measurementPointer to new running speed and cadence measurement.
Return values
0If the operation was successful. Otherwise, a negative error code is returned.