nRF Connect SDK API 0.1.0
|
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.
[in] | model | Model to restore the scene of. |
[in] | data | Scene data to restore. |
[in] | len | Scene data length. |
[in] | transition | Transition parameters. |