diff --git a/src/httpserver/new_http.c b/src/httpserver/new_http.c
index 8e38a320b..aac01f4f3 100644
--- a/src/httpserver/new_http.c
+++ b/src/httpserver/new_http.c
@@ -28,7 +28,7 @@
#else
// REALLY? A typo in Tuya SDK? Storge?
// tuya-iotos-embeded-sdk-wifi-ble-bk7231t/platforms/bk7231t/tuya_os_adapter/include/driver/tuya_hal_storge.h
-
+#include "../logging/logging.h"
#include "tuya_hal_storge.h"
#endif
@@ -318,8 +318,13 @@ int g_total_templates = sizeof(g_templates)/sizeof(g_templates[0]);
#if PLATFORM_XR809
const char *g_header = "
";
+#elif PLATFORM_BK7231T
+
+const char *g_header = "";
+
#else
-const char *g_header = "";
+
+const char *g_header = "";
#endif
@@ -720,6 +725,37 @@ int HTTP_ProcessPacket(http_request_t *request) {
poststr(request,htmlReturnToCfg);
HTTP_AddBuildFooter(request);
poststr(request,htmlEnd);
+ } else if(http_checkUrlBase(urlStr,"cfg_loglevel_set")) {
+ printf("HTTP_ProcessPacket: generating cfg_loglevel_set \r\n");
+
+ http_setup(request, httpMimeTypeHTML);
+ poststr(request,htmlHeader);
+ poststr(request,g_header);
+ if(http_getArg(recvbuf,"loglevel",tmpA,sizeof(tmpA))) {
+#if PLATFORM_BK7231T
+ loglevel = atoi(tmpA);
+#endif
+ poststr(request,"LOG level changed.");
+ }
+ poststr(request," ");
+
+ poststr(request,"
");
+ poststr(request,"Return to config settings");
+ poststr(request,"
");
+ poststr(request,htmlReturnToCfg);
+ HTTP_AddBuildFooter(request);
+ poststr(request,htmlEnd);
} else if(http_checkUrlBase(urlStr,"cfg_wifi")) {
// for a test, show password as well...
const char *cur_ssid, *cur_pass;