build command line from website form (#12)

This commit is contained in:
Christian Herzog
2019-09-04 17:40:25 +02:00
committed by sle118
parent c84c663848
commit 926f4ac723
4 changed files with 101 additions and 23 deletions

View File

@@ -308,7 +308,7 @@ void http_server_netconn_serve(struct netconn *conn) {
if(autoexec_value ){
// todo: replace line below, as it causes an error during compile.
// snprintf(autoexec_value, lenS+1, autoexec_value);
snprintf(autoexec_value, lenS+1, autoexec_value);
if(lenS < MAX_COMMAND_LINE_SIZE ){
ESP_LOGD(TAG, "http_server_netconn_serve: config.json/ call, with %s: %s, length %i", autoexec_key, autoexec_value, lenS);
wifi_manager_save_autoexec_config(autoexec_value,autoexec_key,lenS);