mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
TasmotaClient discard GET_JSON timeout
This commit is contained in:
parent
b9414008df
commit
25f13e434f
@ -444,8 +444,10 @@ void TasmotaClient_Show(void) {
|
||||
char buffer[250]; // Keep size below 255 to stay within 8-bits index and len
|
||||
uint8_t len = TasmotaClient_receiveData(buffer, sizeof(buffer) -1);
|
||||
|
||||
buffer[len] = '\0';
|
||||
ResponseAppend_P(PSTR(",\"TasmotaClient\":%s"), buffer);
|
||||
if (len) {
|
||||
buffer[len] = '\0';
|
||||
ResponseAppend_P(PSTR(",\"TasmotaClient\":%s"), buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user