mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-08 16:25:34 +00:00
allow disabling Tasmota JSON API (#1236)
* allow disabling Tasmota JSON API * test enable
This commit is contained in:
@ -2062,7 +2062,9 @@ static int http_rest_post_cmd(http_request_t* request) {
|
||||
request->responseCode = code;
|
||||
http_setup(request, httpMimeTypeJson);
|
||||
hprintf255(request, "{\"%s\":%d, \"msg\":\"%s\", \"res\":", type, code, reply);
|
||||
#if ENABLE_TASMOTA_JSON
|
||||
JSON_ProcessCommandReply(cmd, skipToNextWord(cmd), request, (jsonCb_t)hprintf255, COMMAND_FLAG_SOURCE_HTTP);
|
||||
#endif
|
||||
hprintf255(request, "}", code, reply);
|
||||
poststr(request, NULL);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user