nRF Connect SDK API 2.8.99
|
int bt_mesh_ponoff_cli_on_power_up_get | ( | struct bt_mesh_ponoff_cli * | cli, |
struct bt_mesh_msg_ctx * | ctx, | ||
enum bt_mesh_on_power_up * | rsp ) |
#include <include/bluetooth/mesh/gen_ponoff_cli.h>
Get the OnPowerUp state of a server.
This call is blocking if the rsp
buffer is non-NULL. Otherwise, this function will return, and the response will be passed to the bt_mesh_ponoff_cli::status_handler callback.
[in] | cli | Power OnOff client to send the message on. |
[in] | ctx | Context of the message, or NULL to send on the configured publish parameters. |
[out] | rsp | Response buffer to put the received response in, or NULL to process the response in the status handler callback. |
0 | Successfully sent a get message. If a response buffer is provided, it has been populated. |
-EALREADY | A blocking request is already in progress. |
-EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
-EAGAIN | The device has not been provisioned. |
-ETIMEDOUT | The request timed out without a response. |