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

◆ delta_set

void(*const bt_mesh_lvl_srv_handlers::delta_set) (struct bt_mesh_lvl_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_delta_set *delta_set, struct bt_mesh_lvl_status *rsp)

Change the Level state relative to its current value.

If delta_set::new_transaction is false, the state transition should use the same start point as the previous delta_set message, effectively overriding the previous message. If it is true, the level transition should start from the current level, stopping any ongoing transitions.

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]delta_setParameters of the state change. Note that the transition will always be non-NULL.
[out]rspResponse structure to be filled.