httpd wip

This commit is contained in:
Sebastien
2020-01-22 19:49:20 -05:00
parent b680999e62
commit 5b1abf0fc9
5 changed files with 5 additions and 659 deletions

View File

@@ -578,7 +578,7 @@ void config_delete_key(const char *key){
ESP_LOGD(TAG, "Deleting nvs entry for [%s]", key);
if(!config_lock(LOCK_MAX_WAIT/portTICK_PERIOD_MS)){
ESP_LOGE(TAG, "Unable to lock config for delete");
return false;
return ;
}
esp_err_t err = nvs_open_from_partition(settings_partition, current_namespace, NVS_READWRITE, &nvs);
if (err == ESP_OK) {

View File

@@ -2,6 +2,7 @@
#include <stdio.h>
#include <string.h>
#include "nvs.h"
#include "cJSON.h"
#ifdef __cplusplus
extern "C" {
@@ -37,4 +38,5 @@ void * config_alloc_get(nvs_type_t nvs_type, const char *key) ;
bool wait_for_commit();
char * config_alloc_get_json(bool bFormatted);
esp_err_t config_set_value(nvs_type_t nvs_type, const char *key, void * value);
nvs_type_t config_get_item_type(cJSON * entry);
void * config_safe_alloc_get_entry_value(nvs_type_t nvs_type, cJSON * entry);