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

◆ move_set

void(*const bt_mesh_light_hue_srv_handlers::move_set) (struct bt_mesh_light_hue_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_light_hue_move *move, struct bt_mesh_light_hue_status *rsp)

Move the hue continuously at a certain rate.

The hue 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 value should wrap around. While the server is executing a move command, it should report its target value as BT_MESH_LIGHT_HSL_MIN or BT_MESH_LIGHT_HSL_MAX, depending on whether it is moving up or down.

Note
This handler is mandatory.
Parameters
[in]srvServer to set the Hue state of.
[in]ctxMessage context.
[in]moveParameters of the state change.
[out]rspResponse structure to be filled.