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

◆ bt_mesh_scheduler_cli_action_set()

int bt_mesh_scheduler_cli_action_set ( struct bt_mesh_scheduler_cli cli,
struct bt_mesh_msg_ctx *  ctx,
uint8_t  idx,
const struct bt_mesh_schedule_entry entry,
struct bt_mesh_schedule_entry rsp 
)

#include <include/bluetooth/mesh/scheduler_cli.h>

Set the appropriate Scheduler Action.

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.

Parameters
[in]cliScheduler client model.
[in]ctxMessage context to send with, or NULL to use the configured publication parameters.
[in]idxIndex of the Schedule Register entry to set.
[in]entryThe entry of the Scheduler Register.
[out]rspResponse buffer, or NULL to keep from blocking.
Return values
0Successfully sent the set message and processed the response.
-EINVALInvalid parameters.
-EALREADYA blocking request is already in progress.
-EADDRNOTAVAILA message context was not provided and publishing is not configured.
-EAGAINThe device has not been provisioned.
-ETIMEDOUTThe request timed out without a response.