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

◆ bt_mesh_scene_srv_set()

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.

Parameters
[in]srvScene Server model.
[in]sceneScene to transition to. Cannot be BT_MESH_SCENE_NONE.
[in]transitionTransition parameters, or NULL to use the default parameters.
Return values
0Successfully transitioned to the given scene.
-EINVALInvalid scene number or transition parameters.
-ENOENTNo such scene.