Dilbert
Firmware for the Dilbert interactive badge.
 All Classes Files Functions Variables Enumerations Macros Pages
SPIFFSConfigService.h
Go to the documentation of this file.
1 
3 #ifndef _SPIFFSCONFIGSERVICE_H_
4 #define _SPIFFSCONFIGSERVICE_H_
5 
6 #include "IConfigStorage.h"
7 
8 #include <FS.h>
9 
17 {
18 public:
20  virtual ~SPIFFSConfigService();
21 
22  virtual bool save(SystemConfigData *data);
23  virtual bool load(SystemConfigData *data);
24 
25 private:
26  File openFile(char *configName, bool write);
27 
28 private:
29  bool m_init;
30 };
31 
32 #endif
Configuration storage service for saving to the SPI flash file system.
Definition: SPIFFSConfigService.h:16
Used to store system configuration data.
Definition: SystemConfigData.h:26
virtual bool save(SystemConfigData *data)
Saves a system configuration.
Definition: SPIFFSConfigService.cpp:18
virtual bool load(SystemConfigData *data)
Loads a system configuration.
Definition: SPIFFSConfigService.cpp:39
Interface for configuration storage.
Definition: IConfigStorage.h:13