![]() |
nRF Connect SDK API 3.3.99
|
| int bt_mesh_plvl_srv_pub | ( | struct bt_mesh_plvl_srv * | srv, |
| struct bt_mesh_msg_ctx * | ctx, | ||
| const struct bt_mesh_plvl_status * | status ) |
#include <include/bluetooth/mesh/gen_plvl_srv.h>
Publish the current Power state.
Publishes a Generic Power Level status message with the configured publish parameters, or using the given message context.
| [in] | srv | Server instance to publish with. |
| [in] | ctx | Message context, or NULL to publish with the configured parameters. |
| [in] | status | Status to publish. |
| -EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
| -EAGAIN | The device has not been provisioned. |