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

◆ light_get

void(*const bt_mesh_lightness_srv_handlers::light_get) (struct bt_mesh_lightness_srv *srv, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_lightness_status *rsp)

Get the current Light state.

When in the middle of a non-instantaneous state change, the Light value filled in rsp must be clamped to the current lightness range of the server using bt_mesh_lightness_clamp.

Note
This handler is mandatory.
Parameters
[in]srvServer to get the Light state of.
[in]ctxContext of the get message that triggered the query, or NULL if it was not triggered by a message.
[out]rspResponse structure to be filled.