Mesh Bluetooth Mesh Health Server Model.
More...
Mesh Bluetooth Mesh Health Server Model.
◆ BT_MESH_HEALTH_FAULT_MSG
#define BT_MESH_HEALTH_FAULT_MSG |
( |
|
max_faults | ) |
NET_BUF_SIMPLE(1 + 3 + (max_faults)) |
A helper to define a health fault message.
- Parameters
-
max_faults | Maximum number of faults the element can have. |
- Returns
- a New os_mbuf of the needed size.
◆ BT_MESH_MODEL_HEALTH_SRV
#define BT_MESH_MODEL_HEALTH_SRV |
( |
|
srv, |
|
|
|
pub |
|
) |
| |
Value:
pub, srv, &bt_mesh_health_srv_cb)
#define BT_MESH_MODEL_CB(_id, _op, _pub, _user_data, _cb)
Composition data SIG model entry with callback functions.
Definition access.h:188
Define a new health server model. Note that this API needs to be repeated for each element that the application wants to have a health server model on. Each instance also needs a unique bt_mesh_health_srv and bt_mesh_model_pub context.
- Parameters
-
- Returns
- New mesh model instance.