mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
Added Rules Trigger for WebQueryResponse
This commit is contained in:
parent
3432c6841d
commit
b35e392e76
@ -3166,12 +3166,14 @@ int WebQuery(char *buffer)
|
|||||||
ResponseClear();
|
ResponseClear();
|
||||||
char text[2] = { 0 };
|
char text[2] = { 0 };
|
||||||
text[0] = '.';
|
text[0] = '.';
|
||||||
|
Response_P(PSTR("{\"" D_CMND_WEBQUERY "\":"));
|
||||||
while (text[0] != '\0') {
|
while (text[0] != '\0') {
|
||||||
text[0] = *read++;
|
text[0] = *read++;
|
||||||
if (text[0] > 31) { // Remove control characters like linefeed
|
if (text[0] > 31) { // Remove control characters like linefeed
|
||||||
if (ResponseAppend_P(text) == ResponseSize()) { break; };
|
if (ResponseAppend_P(text) == ResponseSize()) { break; };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ResponseJsonEnd();
|
||||||
#ifdef USE_SCRIPT
|
#ifdef USE_SCRIPT
|
||||||
extern uint8_t tasm_cmd_activ;
|
extern uint8_t tasm_cmd_activ;
|
||||||
// recursive call must be possible in this case
|
// recursive call must be possible in this case
|
||||||
|
Loading…
x
Reference in New Issue
Block a user