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

◆ bt_mesh_lvl_srv_pub()

int bt_mesh_lvl_srv_pub ( struct bt_mesh_lvl_srv * srv,
struct bt_mesh_msg_ctx * ctx,
const struct bt_mesh_lvl_status * status )

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

Publish the current Level state.

Parameters
[in]srvServer whose Level state should be published.
[in]ctxMessage context to publish with, or NULL to publish on the configured publish parameters.
[in]statusCurrent status.
Return values
0Successfully published a Generic Level Status message.
-EADDRNOTAVAILA message context was not provided and publishing is not configured.
-EAGAINThe device has not been provisioned.