UNFINISHED tuyaMCU and commands thing

This commit is contained in:
openshwprojects
2022-03-04 18:44:58 +01:00
parent f98e5e79a8
commit 2779967149
8 changed files with 292 additions and 19 deletions

View File

@ -642,7 +642,7 @@ int http_fn_cmd_tool(http_request_t *request) {
poststr(request,"<label for=\"cmd\">cmd:</label><br>\
<input type=\"text\" id=\"cmd\" name=\"cmd\" ");
hprintf128(request,"value=\"%s\">",tmpA);
hprintf128(request,"value=\"%s\" size=\"80\">",tmpA);
poststr(request,"<br><br>\
<input type=\"submit\" value=\"Submit\">\
</form> ");

View File

@ -1,6 +1,7 @@
#include "../new_common.h"
#include "../logging/logging.h"
#include "ctype.h"
#if WINDOWS
//#include <windows.h>
@ -408,9 +409,9 @@ int HTTP_ProcessPacket(http_request_t *request) {
}
if (request->method == HTTP_GET) {
printf("HTTP request\n");
ADDLOG_INFO(LOG_FEATURE_HTTP, "HTTP request\n");
} else {
printf("Other request\n");
ADDLOG_INFO(LOG_FEATURE_HTTP, "Other request\n");
}
// if OPTIONS, return now - for CORS