mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* new target: RAK_4631_Repeater
This commit is contained in:
parent
eb685db693
commit
515285e3c9
5 changed files with 143 additions and 9 deletions
|
|
@ -1,13 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <FS.h>
|
||||
#if defined(ESP32)
|
||||
#include <FS.h>
|
||||
#define FILESYSTEM fs::FS
|
||||
#elif defined(NRF52_PLATFORM)
|
||||
#include <Adafruit_LittleFS.h>
|
||||
#define FILESYSTEM Adafruit_LittleFS
|
||||
|
||||
using namespace Adafruit_LittleFS_Namespace;
|
||||
#endif
|
||||
|
||||
#include <Identity.h>
|
||||
|
||||
class IdentityStore {
|
||||
fs::FS* _fs;
|
||||
FILESYSTEM* _fs;
|
||||
const char* _dir;
|
||||
public:
|
||||
IdentityStore(fs::FS& fs, const char* dir): _fs(&fs), _dir(dir) { }
|
||||
IdentityStore(FILESYSTEM& fs, const char* dir): _fs(&fs), _dir(dir) { }
|
||||
|
||||
void begin() { _fs->mkdir(_dir); }
|
||||
bool load(const char *name, mesh::LocalIdentity& id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue