10#ifndef __BT_MESH_HEALTH_SRV_H
11#define __BT_MESH_HEALTH_SRV_H
24struct bt_mesh_health_srv_cb {
26 int (*fault_get_cur)(
struct bt_mesh_model *model, uint8_t *test_id,
27 uint16_t *company_id, uint8_t *faults,
28 uint8_t *fault_count);
31 int (*fault_get_reg)(
struct bt_mesh_model *model, uint16_t company_id,
32 uint8_t *test_id, uint8_t *faults,
33 uint8_t *fault_count);
36 int (*fault_clear)(
struct bt_mesh_model *model, uint16_t company_id);
39 int (*fault_test)(
struct bt_mesh_model *model, uint8_t test_id,
57#define BT_MESH_HEALTH_FAULT_MSG(max_faults) \
58 NET_BUF_SIMPLE(1 + 3 + (max_faults))
65 const struct bt_mesh_health_srv_cb *cb;
68 struct k_work_delayable attn_timer;
73extern const struct bt_mesh_model_op bt_mesh_health_srv_op[];
88#define BT_MESH_MODEL_HEALTH_SRV(srv, pub) \
89 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_HEALTH_SRV, bt_mesh_health_srv_op, \
90 pub, srv, &bt_mesh_health_srv_cb)
Definition health_srv.h:61