|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Heartbeat callback structure. More...
#include <heartbeat.h>
Data Fields | |
| void(* | recv )(const struct bt_mesh_hb_sub *sub, uint8_t hops, uint16_t feat) |
| Receive callback for heartbeats. | |
| void(* | sub_end )(const struct bt_mesh_hb_sub *sub) |
| Subscription end callback for heartbeats. | |
| void(* | pub_sent )(const struct bt_mesh_hb_pub *pub) |
| Publication sent callback for heartbeats. | |
Heartbeat callback structure.
| void(* bt_mesh_hb_cb::pub_sent) (const struct bt_mesh_hb_pub *pub) |
Publication sent callback for heartbeats.
Gets called when the heartbeat is successfully published.
| pub | Current Heartbeat publication parameters. |
| void(* bt_mesh_hb_cb::recv) (const struct bt_mesh_hb_sub *sub, uint8_t hops, uint16_t feat) |
Receive callback for heartbeats.
Gets called on every received Heartbeat that matches the current Heartbeat subscription parameters.
| sub | Current Heartbeat subscription parameters. |
| hops | The number of hops the Heartbeat was received with. |
| feat | The feature set of the publishing node. The value is a bitmap of BT_MESH_FEAT_RELAY, BT_MESH_FEAT_PROXY, BT_MESH_FEAT_FRIEND and BT_MESH_FEAT_LOW_POWER. |
| void(* bt_mesh_hb_cb::sub_end) (const struct bt_mesh_hb_sub *sub) |
Subscription end callback for heartbeats.
Gets called when the subscription period ends, providing a summary of the received heartbeat messages.
| sub | Current Heartbeat subscription parameters. |