support "TOGGLE", allow http cmnd

This commit is contained in:
openshwprojects
2022-04-27 11:26:57 +02:00
parent 9b8ce302af
commit 894df9bb67
2 changed files with 8 additions and 4 deletions

View File

@ -1077,8 +1077,8 @@ int http_fn_cm(http_request_t *request) {
char tmpA[128];
http_setup(request, httpMimeTypeJson);
if( http_getArg(request->url,"cmd",tmpA,sizeof(tmpA))) {
//CMD_ExecuteCommand(
if( http_getArg(request->url,"cmnd",tmpA,sizeof(tmpA))) {
CMD_ExecuteCommand(tmpA);