13#ifndef BT_MESH_GEN_PONOFF_CLI_H__
14#define BT_MESH_GEN_PONOFF_CLI_H__
31#define BT_MESH_PONOFF_CLI_INIT(_power_onoff_status_handler) \
33 .status_handler = _power_onoff_status_handler, \
42#define BT_MESH_MODEL_PONOFF_CLI(_cli) \
43 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_POWER_ONOFF_CLI, \
44 _bt_mesh_ponoff_cli_op, &(_cli)->pub, \
45 BT_MESH_MODEL_USER_DATA( \
46 struct bt_mesh_ponoff_cli, _cli), \
47 &_bt_mesh_ponoff_cli_cb)
56 const struct bt_mesh_model *
model;
58 struct bt_mesh_model_pub
pub;
62 uint8_t
pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_PONOFF_OP_SET,
63 BT_MESH_PONOFF_MSG_LEN_SET)];
74 struct bt_mesh_msg_ctx *ctx,
99 struct bt_mesh_msg_ctx *ctx,
124 struct bt_mesh_msg_ctx *ctx,
145extern const struct bt_mesh_model_op _bt_mesh_ponoff_cli_op[];
146extern const struct bt_mesh_model_cb _bt_mesh_ponoff_cli_cb;
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)
Get the OnPowerUp state of a server.
int bt_mesh_ponoff_cli_on_power_up_set_unack(struct bt_mesh_ponoff_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_on_power_up on_power_up)
Set the OnPowerUp state of a server without requesting a response.
int bt_mesh_ponoff_cli_on_power_up_set(struct bt_mesh_ponoff_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_on_power_up on_power_up, enum bt_mesh_on_power_up *rsp)
Set the OnPowerUp state of a server.
bt_mesh_on_power_up
Definition gen_ponoff.h:24
struct net_buf_simple pub_buf
Definition gen_ponoff_cli.h:60
struct bt_mesh_model_pub pub
Definition gen_ponoff_cli.h:58
struct bt_mesh_msg_ack_ctx ack_ctx
Definition gen_ponoff_cli.h:65
void(*const status_handler)(struct bt_mesh_ponoff_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_on_power_up on_power_up)
OnPowerUp status message handler.
Definition gen_ponoff_cli.h:73
const struct bt_mesh_model * model
Definition gen_ponoff_cli.h:56
uint8_t pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_PONOFF_OP_SET, BT_MESH_PONOFF_MSG_LEN_SET)]
Definition gen_ponoff_cli.h:63
Definition gen_ponoff_cli.h:54