![]() |
nRF Connect SDK API 3.3.99
|
| int bt_mesh_scene_srv_set | ( | struct bt_mesh_scene_srv * | srv, |
| uint16_t | scene, | ||
| struct bt_mesh_model_transition * | transition ) |
#include <include/bluetooth/mesh/scene_srv.h>
Set the current Scene.
All Scene entries of the given Scene Server will transition to the given Scene according to the transition parameters.
| [in] | srv | Scene Server model. |
| [in] | scene | Scene to transition to. Cannot be BT_MESH_SCENE_NONE. |
| [in] | transition | Transition parameters, or NULL to use the default parameters. |
| 0 | Successfully transitioned to the given scene. |
| -EINVAL | Invalid scene number or transition parameters. |
| -ENOENT | No such scene. |