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

◆ bt_mesh_scene_cli_get()

int bt_mesh_scene_cli_get ( struct bt_mesh_scene_cli * cli,
struct bt_mesh_msg_ctx * ctx,
struct bt_mesh_scene_state * rsp )

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

Get the current state of a Scene Server.

This call is blocking if the rsp buffer is non-NULL. The response will always be passed to the bt_mesh_scene_cli::status callback.

Parameters
[in]cliScene client model.
[in]ctxMessage context to send with, or NULL to use the configured publication parameters.
[out]rspResponse buffer, or NULL to keep from blocking.
Return values
0Successfully got the scene state.
-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.