Initial commit

This commit is contained in:
Scott Powell
2025-01-13 14:07:48 +11:00
incheckning 6c7efdd0f6
59 ändrade filer med 8604 tillägg och 0 borttagningar
+15
Visa fil
@@ -0,0 +1,15 @@
#pragma once
#include <FS.h>
#include <Identity.h>
class IdentityStore {
fs::FS* _fs;
const char* _dir;
public:
IdentityStore(fs::FS& fs, const char* dir): _fs(&fs), _dir(dir) { }
void begin() { _fs->mkdir(_dir); }
bool load(const char *name, mesh::LocalIdentity& id);
bool save(const char *name, const mesh::LocalIdentity& id);
};