14#ifndef BT_MESH_GEN_BATTERY_CLI_H__
15#define BT_MESH_GEN_BATTERY_CLI_H__
32#define BT_MESH_BATTERY_CLI_INIT(_status_handler) \
34 .status_handler = _status_handler, \
43#define BT_MESH_MODEL_BATTERY_CLI(_cli) \
44 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_BATTERY_CLI, \
45 _bt_mesh_battery_cli_op, &(_cli)->pub, \
46 BT_MESH_MODEL_USER_DATA(struct bt_mesh_battery_cli, \
48 &_bt_mesh_battery_cli_cb)
70 struct bt_mesh_model_pub
pub;
74 uint8_t
pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_BATTERY_OP_GET,
75 BT_MESH_BATTERY_MSG_LEN_GET)];
77 const struct bt_mesh_model *
model;
99 struct bt_mesh_msg_ctx *ctx,
103extern const struct bt_mesh_model_op _bt_mesh_battery_cli_op[];
104extern const struct bt_mesh_model_cb _bt_mesh_battery_cli_cb;
int bt_mesh_battery_cli_get(struct bt_mesh_battery_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_battery_status *rsp)
Get the status of the bound srv.
void(*const status_handler)(struct bt_mesh_battery_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_battery_status *status)
Battery status message handler.
Definition gen_battery_cli.h:63
struct bt_mesh_model_pub pub
Definition gen_battery_cli.h:70
const struct bt_mesh_model * model
Definition gen_battery_cli.h:77
struct net_buf_simple pub_buf
Definition gen_battery_cli.h:72
uint8_t pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_BATTERY_OP_GET, BT_MESH_BATTERY_MSG_LEN_GET)]
Definition gen_battery_cli.h:75
struct bt_mesh_msg_ack_ctx ack_ctx
Definition gen_battery_cli.h:68
Definition gen_battery_cli.h:55
Definition gen_battery.h:79