Go to the source code of this file.
|
char | LongMessage [MaxLongTextLength] |
| Temp storage for assembling long messages (REST API, MQTT reporting)
|
|
char | ShortMessage [MaxShotTextLength] |
| Temp storage for assembling short text messages (Log entries, Error messages,etc)
|
|
char | CurrentTime [MaxWordLength] |
| Buffer for storing current time in text format.
|
|
◆ loadSettings()
Settings * loadSettings |
( |
bool |
ResetEEPROM | ) |
|
Load settings from EEPROM.
- Parameters
-
ResetEEPROM | - Force loading the defaults from the sketch and overwriting the EEPROM with it |
- Returns
- Reference to Settings object
- Parameters
-
ResetEEPROM | if the function contains arguments with default values, they must be declared strictly before they are called, otherwise there is a compilation error: '<function name> was not declared in this scope. https://forum.arduino.cc/index.php?topic=606678.0 |
Definition at line 20 of file Settings.cpp.
◆ restoreDefaults()
Load sketch default settings into EEPROM.
- Attention
- Restarts the Arduino sketch!
Definition at line 45 of file Settings.cpp.
◆ saveSettings()
Store settings in EEPROM - Only updates changed bits.
- Attention
- Use cautiously, EEPROM has a write limit of 100.000 cycles
Definition at line 10 of file Settings.cpp.
◆ CurrentTime
char CurrentTime[MaxWordLength] |
|
extern |
◆ LongMessage
char LongMessage[MaxLongTextLength] |
|
extern |
Temp storage for assembling long messages (REST API, MQTT reporting)
Definition at line 28 of file Gbox420_Mega_Main.ino.
◆ ShortMessage
char ShortMessage[MaxShotTextLength] |
|
extern |
Temp storage for assembling short text messages (Log entries, Error messages,etc)
Definition at line 29 of file Gbox420_Mega_Main.ino.