1-phase PV router
|
Functions and routines that handle general system processing tasks. More...
Classes | |
class | EWMA_average< A > |
Implements an Exponentially Weighted Moving Average (EWMA). More... | |
Functions | |
void | logLoadPriorities () |
Prints the load priorities to the Serial output. | |
void | sendResults (bool bOffPeak) |
Prints or sends telemetry data logs based on the selected output format. | |
Functions and routines that handle general system processing tasks.
This group includes functions that are not time-critical but are essential for the overall operation of the system. These tasks include monitoring system states, managing load priorities, and handling diversion logic.
void logLoadPriorities | ( | ) |
Prints the load priorities to the Serial output.
This function logs the current load priorities and states to the Serial output for debugging purposes. It provides a detailed view of the load configuration and their respective priorities.
ENABLE_DEBUG
). Definition at line 1345 of file processing.cpp.
References DBUG, DBUGLN, and loadPrioritiesAndState.
Referenced by proceedRotation(), and setup().
|
inline |
Prints or sends telemetry data logs based on the selected output format.
This function handles the transmission of telemetry data in various formats, such as human-readable text, IoT telemetry, or JSON format. It also ensures that the first incomplete datalogging event is skipped during startup.
bOffPeak | Indicates whether the system is in an off-peak tariff period. |
SERIAL_OUTPUT_TYPE
, it prints data in text format, sends telemetry data, or outputs data in JSON format.Definition at line 327 of file utils.h.
References HumanReadable, IoT, JSON, printForJSON(), printForSerialText(), sendTelemetryData(), and SERIAL_OUTPUT_TYPE.
Referenced by loop().