storage on esp8266 will be next

This commit is contained in:
Florian Hoss 2022-04-24 00:21:42 +02:00
parent 59b1a6b15f
commit 2cde69a34a
2 changed files with 26 additions and 1 deletions

View file

@ -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: