![]() |
nRF Connect SDK API 3.3.99
|
| int bt_mesh_scene_cli_register_get | ( | struct bt_mesh_scene_cli * | cli, |
| struct bt_mesh_msg_ctx * | ctx, | ||
| struct bt_mesh_scene_register * | rsp ) |
#include <include/bluetooth/mesh/scene_cli.h>
Get the full scene register 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::scene_register callback.
| [in] | cli | Scene client model. |
| [in] | ctx | Message context to send with, or NULL to use the configured publication parameters. |
| [out] | rsp | Response buffer, or NULL to keep from blocking. If the rsp.scenes parameter points to a valid buffer, it will be filled with at most rsp.count number of scenes, and rsp.count will be changed to reflect the number of retrieved scenes. |
| 0 | Successfully got the scene register. |
| -EALREADY | A blocking request is already in progress. |
| -EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
| -EAGAIN | The device has not been provisioned. |
| -ETIMEDOUT | The request timed out without a response. |