Exported Macros

group HB_Exported_Macros

Defines

HB_COUNT_LOG_NOT_PERIODICALLY 0

Heartbeat messages are not sent periodically.

HB_COUNT_LOG_MAX 0x11

Maximum log value for heartbeat count.

HB_COUNT_LOG_INDEFINITELY 0xFF

Indefinite sending of heartbeat messages.

HB_COUNT_INDEFINITELY 0xFFFF

Messages are sent indefinitely without a set end count.

HB_PERIOD_LOG_MAX 0x11

Maximum log value for heartbeat period.

HB_TTL_MAX 0x7F

Maximum TTL value.

HB_TIMER_PUB 0

Timer for heartbeat publication.

HB_TIMER_SUB 1

Timer for heartbeat subscription.

HB_IS_PUB_PERIODIC(pub) (pub.count && pub.period && MESH_NOT_UNASSIGNED_ADDR(pub.dst))

Check if publication is periodic.

HB_IS_PUB_STORABLE(pub) ((pub.count == HB_COUNT_INDEFINITELY) && pub.period && MESH_NOT_UNASSIGNED_ADDR(pub.dst))

Check if publication can be stored indefinitely.