Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS

Heartbeat. More...

Data Structures

struct  bt_mesh_hb_pub
 
struct  bt_mesh_hb_sub
 
struct  bt_mesh_hb_cb
 

Macros

#define BT_MESH_HB_CB_DEFINE(_name)    static const STRUCT_SECTION_ITERABLE(bt_mesh_hb_cb, _name)
 Register a callback structure for Heartbeat events. More...
 

Functions

void bt_mesh_hb_pub_get (struct bt_mesh_hb_pub *get)
 Get the current Heartbeat publication parameters. More...
 
void bt_mesh_hb_sub_get (struct bt_mesh_hb_sub *get)
 Get the current Heartbeat subscription parameters. More...
 

Detailed Description

Heartbeat.

Macro Definition Documentation

◆ BT_MESH_HB_CB_DEFINE

#define BT_MESH_HB_CB_DEFINE (   _name)     static const STRUCT_SECTION_ITERABLE(bt_mesh_hb_cb, _name)

#include <include/bluetooth/mesh/heartbeat.h>

Register a callback structure for Heartbeat events.

Registers a callback structure that will be called whenever Heartbeat events occur

Parameters
_nameName of callback structure.

Function Documentation

◆ bt_mesh_hb_pub_get()

void bt_mesh_hb_pub_get ( struct bt_mesh_hb_pub get)

#include <include/bluetooth/mesh/heartbeat.h>

Get the current Heartbeat publication parameters.

Parameters
getHeartbeat publication parameters return buffer.

◆ bt_mesh_hb_sub_get()

void bt_mesh_hb_sub_get ( struct bt_mesh_hb_sub get)

#include <include/bluetooth/mesh/heartbeat.h>

Get the current Heartbeat subscription parameters.

Parameters
getHeartbeat subscription parameters return buffer.