14struct bt_mesh_gen_onoff_srv {
21extern const struct bt_mesh_model_op gen_onoff_srv_op[];
24#define BT_MESH_MODEL_GEN_ONOFF_SRV(srv, pub) \
25 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_ONOFF_SRV, \
26 gen_onoff_srv_op, pub, srv, &gen_onoff_srv_cb)
28struct bt_mesh_gen_level_srv {
35extern const struct bt_mesh_model_op gen_level_srv_op[];
38#define BT_MESH_MODEL_GEN_LEVEL_SRV(srv, pub) \
39 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_LEVEL_SRV, \
40 gen_level_srv_op, pub, srv, &gen_level_srv_cb)
42struct bt_mesh_light_lightness_srv {
49extern const struct bt_mesh_model_op light_lightness_srv_op[];
52#define BT_MESH_MODEL_LIGHT_LIGHTNESS_SRV(srv, pub) \
53 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_LIGHT_LIGHTNESS_SRV, \
54 light_lightness_srv_op, pub, srv, &light_lightness_srv_cb)
56void bt_mesh_set_gen_onoff_srv_cb(
int (*get)(
struct bt_mesh_model *model, uint8_t *state),
58void bt_mesh_set_gen_level_srv_cb(
int (*get)(
struct bt_mesh_model *model, int16_t *level),
60void bt_mesh_set_light_lightness_srv_cb(
int (*get)(
struct bt_mesh_model *model, int16_t *level),