|
LSH-Core
A robust C++ framework for Arduino-based home automation nodes
|
Contains the core implementation of the LSH::setup() and LSH::loop() functions. More...
#include <lsh.hpp>#include <stdint.h>#include "communication/constants/static_payloads.hpp"#include "communication/esp_com.hpp"#include "communication/serializer.hpp"#include "config/configurator.hpp"#include "core/network_clicks.hpp"#include "device/actuator_manager.hpp"#include "device/clickable_manager.hpp"#include "device/indicator_manager.hpp"#include "internal/user_config_bridge.hpp"#include "util/constants/clickresults.hpp"#include "util/constants/clicktypes.hpp"#include "util/constants/timing.hpp"#include "util/debug/debug.hpp"#include "util/timekeeper.hpp"
Functions | |
| void | LSH::setup () |
| Initializes the LSH-Core framework. | |
| void | LSH::loop () |
| The main execution loop for the LSH-Core framework. | |
Contains the core implementation of the LSH::setup() and LSH::loop() functions.
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.
| 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


| 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).

