NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
Bt_mesh_health_srv

Mesh Bluetooth Mesh Health Server Model. More...

Classes

struct  bt_mesh_health_srv
 

Macros

#define BT_MESH_HEALTH_FAULT_MSG(max_faults)    NET_BUF_SIMPLE(1 + 3 + (max_faults))
 
#define BT_MESH_MODEL_HEALTH_SRV(srv, pub)
 

Detailed Description

Mesh Bluetooth Mesh Health Server Model.

Macro Definition Documentation

◆ 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_faultsMaximum 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:
BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_HEALTH_SRV, bt_mesh_health_srv_op, \
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
srvPointer to a unique struct bt_mesh_health_srv.
pubPointer to a unique struct bt_mesh_model_pub.
Returns
New mesh model instance.