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

namespace for constants. More...

Namespaces

namespace  debugConfigs
 namespace for debug configurable parameters.
 
namespace  espComConfigs
 namespace for build configurable ESP communication constants.
 
namespace  wrongConfigStrings
 namespace for wrong config static EEPROM strings.
 

Enumerations

enum class  ClickResult : uint8_t {
  NOT_VALID , NO_CLICK , SHORT_CLICK , SHORT_CLICK_QUICK ,
  LONG_CLICK , DOUBLE_CLICK , SUPER_LONG_CLICK , NO_CLICK_DEBOUNCE_NOT_ELAPSED ,
  NO_CLICK_TOO_EARLY_FOR_A_LONG_CLICK , NO_CLICK_TOO_EARLY_FOR_A_SUPER_LONG_CLICK , NO_CLICK_TOO_LATE_FOR_A_SHORT_CLICK , NO_CLICK_KEEPING_CLICKED ,
  NO_CLICK_NOT_SHORT_CLICKABLE , NO_CLICK_NOT_LONG_CLICKABLE , NO_CLICK_NOT_SUPER_LONG_CLICKABLE , NO_CLICK_NOT_LONG_OR_SUPER_LONG_CLICKABLE
}
 Result of clickable click detection via clickDetection(). More...
 
enum class  ClickType : uint8_t { NONE , SHORT , LONG , SUPER_LONG }
 Clickable (like button) click types. More...
 
enum class  LongClickType : uint8_t { NONE , NORMAL , ON_ONLY , OFF_ONLY }
 Long click behaviors. More...
 
enum class  SuperLongClickType : uint8_t { NONE , NORMAL , SELECTIVE }
 Super long click behaviors. More...
 
enum class  NoNetworkClickType : uint8_t { NONE , LOCAL_FALLBACK , DO_NOTHING }
 Fallback for a network click that expired or receives a failover. More...
 
enum class  IndicatorMode : uint8_t { ANY , ALL , MAJORITY }
 Indicator mode for an indicator. More...
 

Detailed Description

namespace for constants.

namespace for constants

Enumeration Type Documentation

◆ ClickResult

enum class constants::ClickResult : uint8_t
strong

Result of clickable click detection via clickDetection().

Enumerator
NOT_VALID 

Clickable is not valid.

NO_CLICK 

No click detected.

SHORT_CLICK 

Short click detected.

SHORT_CLICK_QUICK 

Short click detected, if it's not long and super long clickable.

LONG_CLICK 

Long click detected.

SUPER_LONG_CLICK 

Super long click detected.

NO_CLICK_DEBOUNCE_NOT_ELAPSED 

Debounce time not elapsed.

NO_CLICK_TOO_EARLY_FOR_A_LONG_CLICK 

The clickable is released too early to be a long click.

NO_CLICK_TOO_EARLY_FOR_A_SUPER_LONG_CLICK 

The clickable is released too early to be a super long click.

NO_CLICK_TOO_LATE_FOR_A_SHORT_CLICK 

The clickable is released too late to be a short click.

NO_CLICK_KEEPING_CLICKED 

The clickable is kept clicked after super long press.

NO_CLICK_NOT_SHORT_CLICKABLE 

Detected a short click but the clickable is not short clickable.

NO_CLICK_NOT_LONG_CLICKABLE 

Detected a long click but the clickable is not long clickable.

NO_CLICK_NOT_SUPER_LONG_CLICKABLE 

Detected a super long click but the clickable is not super long clickable.

NO_CLICK_NOT_LONG_OR_SUPER_LONG_CLICKABLE 

Detected a long or super long click but the clickable is not long or super long clickable.

◆ ClickType

enum class constants::ClickType : uint8_t
strong

Clickable (like button) click types.

Enumerator
NONE 

Never use this, it's just a default parameter.

SHORT 

Short click.

LONG 

Long click.

SUPER_LONG 

Super long click.

◆ IndicatorMode

enum class constants::IndicatorMode : uint8_t
strong

Indicator mode for an indicator.

Enumerator
ANY 

If any controlled actuators is ON turn on the indicator.

ALL 

If all controlled actuators are ON turn on the indicator.

MAJORITY 

If the majority of controlled actuators is ON turn ON the indicator.

◆ LongClickType

enum class constants::LongClickType : uint8_t
strong

Long click behaviors.

Enumerator
NONE 

Never use this, it's just a default parameter.

NORMAL 

Turns on or off secondary attached actuators based on how many are on or off.

ON_ONLY 

Turns on secondary attached actuators.

OFF_ONLY 

Turns off secondary attached actuators.

◆ NoNetworkClickType

enum class constants::NoNetworkClickType : uint8_t
strong

Fallback for a network click that expired or receives a failover.

Enumerator
NONE 

Never use this, it's just a default parameter.

LOCAL_FALLBACK 

Apply local logic.

DO_NOTHING 

Do nothing.

◆ SuperLongClickType

enum class constants::SuperLongClickType : uint8_t
strong

Super long click behaviors.

Enumerator
NONE 

Never use this, it's just a default parameter.

NORMAL 

Turns off all controllino unprotected actuators.

SELECTIVE 

Turns off a list of selected unprotected actuators.