Refactors filesystem service

This commit is contained in:
Rune Harlyk
2024-11-07 16:45:14 +01:00
committed by Rune Harlyk
parent 3a3de53752
commit fd652bd967
13 changed files with 145 additions and 94 deletions
+2 -1
View File
@@ -18,7 +18,7 @@
#include <FS.h>
#include <StatefulService.h>
#include <ESPFS.h>
#include <filesystem.h>
template <class T>
class FSPersistence {
@@ -32,6 +32,7 @@ class FSPersistence {
_filePath(filePath),
_updateHandlerId(0) {
enableUpdateHandler();
readFromFS();
}
void readFromFS() {