nRF Connect SDK API 2.8.99
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.