![]() |
nRF Connect SDK API 3.3.99
|
#include <gen_battery_srv.h>
Data Fields | |
| const struct bt_mesh_model * | model |
| struct bt_mesh_model_pub | pub |
| struct net_buf_simple | pub_buf |
| uint8_t | pub_data [BT_MESH_MODEL_BUF_LEN(BT_MESH_BATTERY_OP_STATUS, BT_MESH_BATTERY_MSG_LEN_STATUS)] |
| void(*const | get )(struct bt_mesh_battery_srv *srv, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_battery_status *rsp) |
| Get the Battery state. | |
Generic Battery Server instance. Should primarily be initialized with the BT_MESH_BATTERY_SRV_INIT macro.