uEspConfigLib
https://github.com/Naguissa/uEspConfigLib
|
The deffinitive ESP32 and ESP8266 configuration Arduino library, uEspConfigLib - EEPROM writing implementation part. More...
#include <uEspConfigLibFSEEPROM.h>
Public Member Functions | |
uEspConfigLibFSEEPROM (const bool=false, const uint8_t=UEEPROMLIB_ADDRESS) | |
Constructor. More... | |
uEspConfigLibFSEEPROM (const char *, const bool=false, const uint8_t=UEEPROMLIB_ADDRESS) | |
Constructor. More... | |
bool | openToRead () |
Opens the file for read. More... | |
bool | openToWrite () |
Opens the file for write. More... | |
bool | readLine (String *) |
Reads a whole line from current file. More... | |
bool | write (const char *) |
Writes content to current file. More... | |
bool | closeFile () |
Closes current file. More... | |
![]() | |
virtual bool | openToRead () |
Opens the file for read. More... | |
virtual bool | openToWrite () |
Opens the file for write. More... | |
virtual bool | readLine (String *) |
Reads a whole line from current file. More... | |
virtual bool | write (const char *) |
Writes content to current file. More... | |
virtual bool | closeFile () |
Closes current file. More... | |
uint8_t | status () |
Returns current status. More... | |
The deffinitive ESP32 and ESP8266 configuration Arduino library, uEspConfigLib - EEPROM writing implementation part.
The deffinitive ESP32 and ESP8266 configuration Arduino library, uEspConfigLib - EEPROM FileSystem interface implementation part.
This library consist in 2 parts:
One main library, uEspConfigLib, that manages configuration options, defaults, configuration site (HTML and JSON), configuration processing (from a POST of previous site) and configuration storage.
One interface to manage different configuration storages.
Currently storage classes are: SD-card, LittleFS, SPIFFS and none (values are lost after restart).
uEspConfigLibFSEEPROM::uEspConfigLibFSEEPROM | ( | const bool | init = false , |
const uint8_t | address = UEEPROMLIB_ADDRESS |
||
) |
Constructor.
init | Set to true if you want to initialize and format (if needed) the filesystem |
address | EEPROM I2C address |
uEspConfigLibFSEEPROM::uEspConfigLibFSEEPROM | ( | const char * | path, |
const bool | init = false , |
||
const uint8_t | address = UEEPROMLIB_ADDRESS |
||
) |
Constructor.
path | File path on filesystem |
init | Set to true if you want to initialize and format (if needed) the filesystem |
address | EEPROM I2C address |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reads a whole line from current file.
line | String pointer where line will be read |
Reimplemented from uEspConfigLibFSInterface.
|
virtual |
Writes content to current file.
data | char array pointer to be written |
Reimplemented from uEspConfigLibFSInterface.