nRF Connect SDK API 2.8.99
|
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.
[in] | srv | Server whose Level state should be published. |
[in] | ctx | Message context to publish with, or NULL to publish on the configured publish parameters. |
[in] | status | Current status. |
0 | Successfully published a Generic Level Status message. |
-EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
-EAGAIN | The device has not been provisioned. |