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

◆ set

void(*const bt_mesh_light_sat_srv_handlers::set) (struct bt_mesh_light_sat_srv *srv, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_light_sat *set, struct bt_mesh_light_sat_status *rsp)

Set the Saturation state.

When a set message is received, the model publishes a status message, with the response set to rsp. When an acknowledged set message is received, the model also sends a response back to a client. If a state change is non-instantaneous, for example when bt_mesh_model_transition_time returns a nonzero value, the application is responsible for publishing a value of the Saturation state at the end of the transition.

Note
This handler is mandatory.
Parameters
[in]srvLight Saturation server.
[in]ctxMessage context, or NULL if the callback was not triggered by a mesh message.
[in]setParameters of the state change.
[out]rspResponse structure to be filled.