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

◆ bt_mesh_light_ctrl_cli_light_onoff_set_unack()

int bt_mesh_light_ctrl_cli_light_onoff_set_unack ( struct bt_mesh_light_ctrl_cli * cli,
struct bt_mesh_msg_ctx * ctx,
const struct bt_mesh_onoff_set * set )

#include <include/bluetooth/mesh/light_ctrl_cli.h>

Tell a Light Lightness Control Server to turn the light on or off without requesting a response.

The OnOff state determines whether the Server is currently keeping the light of its Lightness Server on.

Parameters
[in]cliClient model to send on.
[in]ctxMessage context, or NULL to use the configured publish parameters.
[in]setSet parameters. The transition::time parameter may be set to override the Server's default fade time, or transition may be set to NULL.
Return values
0Successfully sent the message.
-EADDRNOTAVAILA message context was not provided and publishing is not configured.
-EAGAINThe device has not been provisioned.