add some classes for movement set handling

This commit is contained in:
superkor
2026-01-13 03:55:49 -05:00
parent 9be51af034
commit b37e09e129
11 changed files with 263 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
#include "TopologyBlobs.h"
#include "esp_log.h"
#ifdef MOVEMENTS
TopologyManager::TopologyManager(){
esp_err_t res = nvs_open(MOVEMENTS_NVS_NAMESPACE, NVS_READWRITE, &handle);
if (res != ESP_OK){
ESP_LOGE(MOVEMENTS_DEBUG_TAG, "Failed to open nvs for %s", MOVEMENTS_NVS_NAMESPACE);
return;
}
};
TopologyManager::~TopologyManager(){
nvs_close(handle);
}
#endif //MOVEMENTS