#include <include/bluetooth/mesh/gen_onoff_cli.h>
Set the OnOff state in the srv without requesting a response.
- Parameters
-
[in] | cli | Client model to send on. |
[in] | ctx | Message context, or NULL to use the configured publish parameters. |
[in] | set | New OnOff parameters to set. set::transition can either point to a transition structure, or be left to NULL to use the default transition parameters on the server. |
- Return values
-
0 | Successfully sent the message. |
-EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
-EAGAIN | The device has not been provisioned. |