config save and reboot stack overflow fixed with increase web server

stack memory
This commit is contained in:
Bogdan Pilyugin 2023-07-27 19:05:37 +02:00
parent 66bf716d79
commit 5de496fc51
2 changed files with 4 additions and 3 deletions

View File

@ -494,6 +494,7 @@ static httpd_handle_t start_webserver(void)
config.lru_purge_enable = true;
config.uri_match_fn = httpd_uri_match_wildcard;
config.max_open_sockets = 3;
config.stack_size = (4096 + 1024);
// Start the httpd server
ESP_LOGI(TAG, "Starting server on port: '%d'", config.server_port);

View File

@ -199,11 +199,11 @@ static sys_error_code SysPayloadTypeVarsHandler(data_message_t *MSG)
case 0:
break;
case 1:
//WriteNVSSysConfig(GetSysConf());
WriteNVSSysConfig(GetSysConf());
break;
case 2:
//WriteNVSSysConfig(GetSysConf());
//DelayedRestart();
WriteNVSSysConfig(GetSysConf());
DelayedRestart();
break;
default:
return SYS_ERROR_PARSE_APPLYTYPE;