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

◆ bt_mesh_dtt_get()

int bt_mesh_dtt_get ( struct bt_mesh_dtt_cli cli,
struct bt_mesh_msg_ctx *  ctx,
int32_t *  rsp_transition_time 
)

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

Get 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 making the request.
[in]ctxMessage context to use for sending, or NULL to publish with the configured parameters.
[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 retrieved the status of the bound srv.
-EALREADYA blocking operation is already in progress in this model.
-EAGAINThe device has not been provisioned.
-ETIMEDOUTThe request timed out without a response.