Add NVS key for username and password

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
2025-09-26 12:24:57 +09:00
parent e07aad2d7d
commit fb2ab88bc9
2 changed files with 6 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ const static char* keys[NCONFIG_TYPE_MAX] = {
[VIN_CURRENT_LIMIT] = "vin_climit",
[MAIN_CURRENT_LIMIT] = "main_climit",
[USB_CURRENT_LIMIT] = "usb_climit",
[PAGE_USERNAME] = "username",
[PAGE_PASSWORD] = "password",
};
struct default_value
@@ -50,6 +52,8 @@ struct default_value const default_values[] = {
{VIN_CURRENT_LIMIT, "4.0"},
{MAIN_CURRENT_LIMIT, "3.0"},
{USB_CURRENT_LIMIT, "3.0"},
{PAGE_USERNAME, "admin"},
{PAGE_PASSWORD, "password"},
};
esp_err_t init_nconfig()