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

◆ bt_mesh_dtt_set()

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.

Parameters
[in]cliClient model to send on.
[in]ctxMessage context to use for sending, or NULL to publish with the configured parameters.
[in]transition_timeTransition time to set (in milliseconds). Must be less than BT_MESH_MODEL_TRANSITION_TIME_MAX_MS.
[out]rsp_transition_timePointer 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.
Return values
0Successfully sent the message and populated the rsp_transition_time buffer.
-EINVALThe given transition time is invalid.
-EALREADYA blocking operation is already in progress in this model.
-EAGAINThe device has not been provisioned.
-ETIMEDOUTThe request timed out without a response.