LOGGER
Logger
Data Logging using ESP8266
|
Services to read and write permanent parameters stored in EEPROM. More...
#include "basetype.h"
Go to the source code of this file.
Functions | |
void | parametersInit () |
void | parametersSaveValue (void *pVariable, uint8_t numBytes) |
void | parametersSetValue (String name, String value) |
void | parametersSaveAll () |
Save all variables that are stored in permanent memory. | |
String | parametersDumpWebRow (void *pVariable) |
Variables | |
uint8_t | permanentsVersion |
< version of this include file More... | |
uint16_t | permanentsSize |
Services to read and write permanent parameters stored in EEPROM.
Services that read and store permanent parameters in EEPROM.
String parametersDumpWebRow | ( | void * | pVariable | ) |
Build a row that displays a variable and allows the user to set the value of the variable. The name of the value is permanentname and the name of the value is permanentvalue.
pVariable | pointer to the variable to display |
void parametersInit | ( | ) |
Call once at system startup to recover parameters from memory that survives reboots and store the recovered values in memory.
void parametersSaveValue | ( | void * | pVariable, |
uint8_t | numBytes | ||
) |
Call to update a variable in permanent memory. Copys the in memory value to permanent memory. The permanent memory copy will be recovered at system boot. Call this routine any time the in memory variable changes.
The variable in memory is read from pVariable and stored in EEPROM. This value will be recovered at boot and be the initial value of the variable.
pVariable | pointer to memory storage |
numBytes | number of bytes of data to copy |
void parametersSetValue | ( | String | name, |
String | value | ||
) |
Update a variable in permanent memory by first finding the variable by its permanent name and setting the local value and then setting the value in permanent storage.
uint16_t permanentsSize |
Place to store how many bytes are saved in permanent memory. Initialized to make sure we will always read the first two items
uint8_t permanentsVersion |
< version of this include file
Place to store the permanents version number which is recovered from EEPROM