![]() |
nRF Connect SDK API 3.3.99
|
| int bt_mesh_sensor_cli_cadence_get | ( | struct bt_mesh_sensor_cli * | cli, |
| struct bt_mesh_msg_ctx * | ctx, | ||
| const struct bt_mesh_sensor_type * | sensor, | ||
| struct bt_mesh_sensor_cadence_status * | rsp ) |
#include <include/bluetooth/mesh/sensor_cli.h>
Get the cadence state.
This call is blocking if the rsp buffer is non-NULL. Otherwise, this function will return, and the response will be passed to the bt_mesh_sensor_cli_handlers::cadence callback.
| [in] | cli | Sensor client instance. |
| [in] | ctx | Message context parameters, or NULL to use the configured publish parameters. |
| [in] | sensor | Sensor to get the cadence of. |
| [out] | rsp | Sensor cadence response buffer, or NULL to keep from blocking. |
| 0 | Successfully received the cadence. The rsp buffer has been filled. |
| -ENOTSUP | The sensor doesn't support cadence settings. |
| -EALREADY | A blocking request is already in progress. |
| -EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
| -EAGAIN | The device has not been provisioned. |
| -ETIMEDOUT | The request timed out without a response. |