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

◆ store

ssize_t(* bt_mesh_scene_entry::store) (const struct bt_mesh_model *model, uint8_t data[])

Store the current state as a scene.

The callback should fill the data with the current scene state and return the number of bytes written. data is guaranteed to fit maxlen number of bytes.

Parameters
[in]modelModel to get the scene data of.
[out]dataScene data buffer to fill. Fits maxlen bytes.
Returns
The number of bytes written to data or a negative value on failure.