Separate FS write from serializeConfig
Break the actual JSON assembly apart from the file writing code. This permits calling it in other contexts, allowing us to pull the live config data even if the filesystem is out of date.
This commit is contained in:
@@ -27,7 +27,8 @@ void IRAM_ATTR touchButtonISR();
|
||||
bool deserializeConfig(JsonObject doc, bool fromFS = false);
|
||||
void deserializeConfigFromFS();
|
||||
bool deserializeConfigSec();
|
||||
void serializeConfig();
|
||||
void serializeConfig(JsonObject doc);
|
||||
void serializeConfigToFS();
|
||||
void serializeConfigSec();
|
||||
|
||||
template<typename DestType>
|
||||
|
||||
Reference in New Issue
Block a user