storage on esp8266 will be next
This commit is contained in:
parent
59b1a6b15f
commit
2cde69a34a
2 changed files with 26 additions and 1 deletions
|
@ -1,8 +1,11 @@
|
|||
#ifndef ESP32_STORAGE_HPP
|
||||
#define ESP32_STORAGE_HPP
|
||||
|
||||
#ifdef ESP32
|
||||
#include "Preferences.h"
|
||||
#include "SPIFFS.h"
|
||||
#endif
|
||||
|
||||
#include "Utils.hpp"
|
||||
|
||||
namespace fw
|
||||
|
@ -10,7 +13,9 @@ namespace fw
|
|||
class Storage
|
||||
{
|
||||
private:
|
||||
#ifdef ESP32
|
||||
Preferences memory;
|
||||
#endif
|
||||
ok_t mount_spiffs();
|
||||
|
||||
protected:
|
||||
|
|
Reference in a new issue