nRF Connect SDK API 0.1.0
|
int bt_mesh_dtt_set | ( | struct bt_mesh_dtt_cli * | cli, |
struct bt_mesh_msg_ctx * | ctx, | ||
uint32_t | transition_time, | ||
int32_t * | rsp_transition_time | ||
) |
#include <include/bluetooth/mesh/gen_dtt_cli.h>
Set the Default Transition Time of the server.
This call is blocking if the rsp_transition_time
buffer is non-NULL. Otherwise, this function will return, and the response will be passed to the bt_mesh_dtt_cli::status_handler callback.
[in] | cli | Client model to send on. |
[in] | ctx | Message context to use for sending, or NULL to publish with the configured parameters. |
[in] | transition_time | Transition time to set (in milliseconds). Must be less than BT_MESH_MODEL_TRANSITION_TIME_MAX_MS. |
[out] | rsp_transition_time | Pointer to a response buffer, or NULL to keep from blocking. The response denotes the configured transition time in milliseconds. Can be SYS_FOREVER_MS if the current state is unknown or too large to represent. |
0 | Successfully sent the message and populated the rsp_transition_time buffer. |
-EINVAL | The given transition time is invalid. |
-EALREADY | A blocking operation is already in progress in this model. |
-EAGAIN | The device has not been provisioned. |
-ETIMEDOUT | The request timed out without a response. |