nRF Connect SDK API 2.8.99
|
int bt_mesh_scheduler_cli_action_get | ( | struct bt_mesh_scheduler_cli * | cli, |
struct bt_mesh_msg_ctx * | ctx, | ||
uint8_t | idx, | ||
struct bt_mesh_schedule_entry * | rsp ) |
#include <include/bluetooth/mesh/scheduler_cli.h>
Get the appropriate Scheduler Action status.
This call is blocking if the rsp
buffer is non-NULL. The response will always be passed to the bt_mesh_scheduler_cli::action_status_handler.
[in] | cli | Scheduler client model. |
[in] | ctx | Message context to send with, or NULL to use the configured publication parameters. |
[in] | idx | Index of the Schedule Register entry to get. |
[out] | rsp | Response buffer, or NULL to keep from blocking. |
0 | Successfully got the Scheduler Action status. |
-EINVAL | Invalid index. |
-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. |