mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
added save function to write settings to fS
This commit is contained in:
@@ -82,4 +82,8 @@ void EMSESPSettingsService::begin() {
|
|||||||
_fsPersistence.readFromFS();
|
_fsPersistence.readFromFS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EMSESPSettingsService::save() {
|
||||||
|
_fsPersistence.writeToFS();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace emsesp
|
} // namespace emsesp
|
||||||
@@ -62,6 +62,7 @@ class EMSESPSettingsService : public StatefulService<EMSESPSettings> {
|
|||||||
EMSESPSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager);
|
EMSESPSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager);
|
||||||
|
|
||||||
void begin();
|
void begin();
|
||||||
|
void save();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HttpEndpoint<EMSESPSettings> _httpEndpoint;
|
HttpEndpoint<EMSESPSettings> _httpEndpoint;
|
||||||
|
|||||||
Reference in New Issue
Block a user