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

◆ recall

void(* bt_mesh_scene_entry::recall) (const struct bt_mesh_model *model, const uint8_t data[], size_t len, struct bt_mesh_model_transition *transition)

Recall a scene based on the given scene data.

When a scene is recalled, the Scene Server calls this callback for every scene entry that has data for the recalled scene. The handler shall start transitioning to the given scene with the given transition parameters. If the transition is non-instantaneous, for example when bt_mesh_model_transition_time returns a nonzero value, the handler shall publish a status message at the end of the transition.

Parameters
[in]modelModel to restore the scene of.
[in]dataScene data to restore.
[in]lenScene data length.
[in]transitionTransition parameters.