From b35e392e768b7cc48da90d8702b76dd1b3846ed1 Mon Sep 17 00:00:00 2001 From: Adrian Scillato Date: Sat, 9 Apr 2022 03:44:00 -0300 Subject: [PATCH] Added Rules Trigger for WebQueryResponse --- tasmota/xdrv_01_webserver.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index f6539799c..b1f7a2973 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -3166,12 +3166,14 @@ int WebQuery(char *buffer) ResponseClear(); char text[2] = { 0 }; text[0] = '.'; + Response_P(PSTR("{\"" D_CMND_WEBQUERY "\":")); while (text[0] != '\0') { text[0] = *read++; if (text[0] > 31) { // Remove control characters like linefeed if (ResponseAppend_P(text) == ResponseSize()) { break; }; } } + ResponseJsonEnd(); #ifdef USE_SCRIPT extern uint8_t tasm_cmd_activ; // recursive call must be possible in this case