NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
Bluetooth Mesh Configuration Client Model

Bluetooth Mesh. More...

Classes

struct  bt_mesh_cfg_cli
 

Macros

#define BT_MESH_PUB_PERIOD_100MS(steps)   ((steps) & BIT_MASK(6))
 Helper macro to encode model publication period in units of 100ms.
 
#define BT_MESH_PUB_PERIOD_SEC(steps)   (((steps) & BIT_MASK(6)) | (1 << 6))
 Helper macro to encode model publication period in units of 1 second.
 
#define BT_MESH_PUB_PERIOD_10SEC(steps)   (((steps) & BIT_MASK(6)) | (2 << 6))
 Helper macro to encode model publication period in units of 10 seconds.
 
#define BT_MESH_PUB_PERIOD_10MIN(steps)   (((steps) & BIT_MASK(6)) | (3 << 6))
 Helper macro to encode model publication period in units of 10 minutes.
 

Detailed Description

Bluetooth Mesh.

Macro Definition Documentation

◆ BT_MESH_PUB_PERIOD_100MS

#define BT_MESH_PUB_PERIOD_100MS (   steps)    ((steps) & BIT_MASK(6))

Helper macro to encode model publication period in units of 100ms.

Parameters
stepsNumber of 100ms steps.
Returns
Encoded value that can be assigned to bt_mesh_cfg_mod_pub.period

◆ BT_MESH_PUB_PERIOD_10MIN

#define BT_MESH_PUB_PERIOD_10MIN (   steps)    (((steps) & BIT_MASK(6)) | (3 << 6))

Helper macro to encode model publication period in units of 10 minutes.

Parameters
stepsNumber of 10 minute steps.
Returns
Encoded value that can be assigned to bt_mesh_cfg_mod_pub.period

◆ BT_MESH_PUB_PERIOD_10SEC

#define BT_MESH_PUB_PERIOD_10SEC (   steps)    (((steps) & BIT_MASK(6)) | (2 << 6))

Helper macro to encode model publication period in units of 10 seconds.

Parameters
stepsNumber of 10 second steps.
Returns
Encoded value that can be assigned to bt_mesh_cfg_mod_pub.period

◆ BT_MESH_PUB_PERIOD_SEC

#define BT_MESH_PUB_PERIOD_SEC (   steps)    (((steps) & BIT_MASK(6)) | (1 << 6))

Helper macro to encode model publication period in units of 1 second.

Parameters
stepsNumber of 1 second steps.
Returns
Encoded value that can be assigned to bt_mesh_cfg_mod_pub.period