LSH-Core
A robust C++ framework for Arduino-based home automation nodes
Loading...
Searching...
No Matches
Indicators Namespace Reference

Forward declaration. More...

Functions

void addIndicator (Indicator *const indicator)
 Adds an indicator to the system.
 
void indicatorsCheck ()
 Performs a indicator check for indicator set.
 
void finalizeSetup ()
 Resize vectors of all indicators to the actual needed size.
 

Variables

uint8_t totalIndicators = 0U
 Device real total indicators.
 
etl::array< Indicator *, CONFIG_MAX_INDICATORS > indicators {}
 Device indicators.
 

Detailed Description

Forward declaration.

Globally stores all indicators and to operates over them.

Function Documentation

◆ addIndicator()

void Indicators::addIndicator ( Indicator *const  indicator)

Adds an indicator to the system.

The indicator is stored in the main array. If the maximum number of indicators is exceeded, the device will reset to prevent undefined behavior.

Parameters
indicatorA pointer to the Indicator object to add.
Here is the call graph for this function:

Variable Documentation

◆ totalIndicators

uint8_t Indicators::totalIndicators = 0U

Device real total indicators.

Device real total Indicators.