nRF Connect SDK API 0.1.0
|
void(*const bt_mesh_lvl_srv_handlers::move_set) (struct bt_mesh_lvl_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_move_set *move_set, struct bt_mesh_lvl_status *rsp) |
Move the Level state continuously at a given rate.
The Level state should move move_set::delta
units for every move_set::transition::time
milliseconds. For instance, if delta is 5 and the transition time is 100ms, the state should move at a rate of 50 per second.
When reaching the border values for the state, the wraparound behavior is application specific. While the server is executing a move command, it should report its target
value as BT_MESH_LVL_MIN or BT_MESH_LVL_MAX, depending on whether it is moving up or down.
[in] | srv | Level server to change the state of. |
[in] | ctx | Message context for the message that triggered the change, or NULL if the change is not coming from a message. |
[in] | move_set | Parameters of the state change. Note that the transition will always be non-NULL. |
[out] | rsp | Response structure to be filled. |