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

◆ move_set

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.

Note
This handler is mandatory.
Parameters
[in]srvLevel server to change the state of.
[in]ctxMessage context for the message that triggered the change, or NULL if the change is not coming from a message.
[in]move_setParameters of the state change. Note that the transition will always be non-NULL.
[out]rspResponse structure to be filled.