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

Contains the core implementation of the LSH::setup() and LSH::loop() functions. More...

Include dependency graph for lsh_core.cpp:

Functions

void LSH::setup ()
 Initializes the LSH-Core framework.
 
void LSH::loop ()
 The main execution loop for the LSH-Core framework.
 

Detailed Description

Contains the core implementation of the LSH::setup() and LSH::loop() functions.

Author
Jacopo Labardi (labodj)

Copyright 2025 Jacopo Labardi

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ loop()

void LSH::loop ( )

The main execution loop for the LSH-Core framework.

This function must be called continuously in the Arduino loop() function. It handles input polling, click detection, network communication, and timed events like actuator auto-off timers.

< True if the state must be sent and light indicators must be checked, false otherwise.

< True if network clicks timers must be checked, false otherwise.

< Timestamp of the last time the clickables were checked.

< Temp holder of clickable click type

< Stores last time network click timer check has been executed

< Stores last time actuators auto off timer check has been executed

< True if the state must be sent and light indicators must be checked, false otherwise.

< True if network clicks timers must be checked, false otherwise.

< Timestamp of the last time the clickables were checked.

< Temp holder of clickable click type

< Stores last time network click timer check has been executed

< Stores last time actuators auto off timer check has been executed

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup()

void LSH::setup ( )

Initializes the LSH-Core framework.

This function must be called once in the Arduino setup() function. It initializes serial communication, applies the user-defined device configuration, and prepares all managers (Actuators, Clickables, Indicators).

Here is the call graph for this function:
Here is the caller graph for this function: