uEspConfigLib
https://github.com/Naguissa/uEspConfigLib
|
The deffinitive ESP32 and ESP8266 configuration Arduino library, uEspConfigLib - FileSystem interface part. More...
#include <uEspConfigLibFSInterface.h>
Public Member Functions | |
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 - FileSystem interface 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).
|
inlinevirtual |
Closes current file.
Reimplemented in uEspConfigLibFSLittlefs, uEspConfigLibFSNone, uEspConfigLibFSSd, and uEspConfigLibFSSpiffs.
|
inlinevirtual |
Opens the file for read.
Reimplemented in uEspConfigLibFSLittlefs, uEspConfigLibFSNone, uEspConfigLibFSSd, and uEspConfigLibFSSpiffs.
|
inlinevirtual |
Opens the file for write.
Reimplemented in uEspConfigLibFSLittlefs, uEspConfigLibFSNone, uEspConfigLibFSSd, and uEspConfigLibFSSpiffs.
|
inlinevirtual |
Reads a whole line from current file.
line | String pointer where line will be read |
Reimplemented in uEspConfigLibFSLittlefs, uEspConfigLibFSNone, uEspConfigLibFSSd, and uEspConfigLibFSSpiffs.
|
inline |
Returns current status.
|
inlinevirtual |
Writes content to current file.
data | char array pointer to be written |
Reimplemented in uEspConfigLibFSLittlefs, uEspConfigLibFSNone, uEspConfigLibFSSd, and uEspConfigLibFSSpiffs.