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

◆ bt_mesh_light_ctrl_srv_pub()

int bt_mesh_light_ctrl_srv_pub ( struct bt_mesh_light_ctrl_srv * srv,
struct bt_mesh_msg_ctx * ctx )

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

Publish the current OnOff state.

Parameters
[in]srvLight Lightness Control Server instance.
[in]ctxMessage context, or NULL to publish with the configured parameters.
Returns
0 Successfully published the current Light state.
Return values
-EADDRNOTAVAILA message context was not provided and publishing is not configured.
-EAGAINThe device has not been provisioned.