![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [in] | cli | Client model to send on. |
| [in] | ctx | Message context, or NULL to use the configured publish parameters. |
| [in] | set | Set parameters. The transition::time parameter may be set to override the Server's default fade time, or transition may be set to NULL. |
| 0 | Successfully sent the message. |
| -EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
| -EAGAIN | The device has not been provisioned. |