8 #ifndef MAIN_APPSETTING_H_
9 #define MAIN_APPSETTING_H_
11 #include "esp_system.h"
12 #include "esp_partition.h"
13 #include "nvs_flash.h"
18 #define APPSETTING_DEBUG_PRINT(...) ESP_LOGI("APPSETTING", __VA_ARGS__);
19 #define APPSETTING_INFO_PRINT(...) ESP_LOGI("APPSETTING", __VA_ARGS__);
21 #define APPSETTING_NAMESPACE "DCX_APP_SETTING"
22 #define APPSETTING_KEY "SETTING_BLOB"
24 #define SETTING_DEFAULT_AP_NAME "ESPectro32_000"
25 #define SETTING_DEFAULT_AP_PASS "11223344"
26 #define SETTING_FORCE_RESET false
34 bool wifiConfigured =
false;
43 esp_err_t begin(
char *namesp = APPSETTING_NAMESPACE);
46 esp_err_t save(
char *key = APPSETTING_KEY);
53 nvs_handle nvsHandle_ = 0;
Definition: AppSetting.h:28