TasmotaClient discard GET_JSON timeout

This commit is contained in:
Theo Arends 2024-11-24 16:07:36 +01:00
parent b9414008df
commit 25f13e434f

View File

@ -444,10 +444,12 @@ void TasmotaClient_Show(void) {
char buffer[250]; // Keep size below 255 to stay within 8-bits index and len char buffer[250]; // Keep size below 255 to stay within 8-bits index and len
uint8_t len = TasmotaClient_receiveData(buffer, sizeof(buffer) -1); uint8_t len = TasmotaClient_receiveData(buffer, sizeof(buffer) -1);
if (len) {
buffer[len] = '\0'; buffer[len] = '\0';
ResponseAppend_P(PSTR(",\"TasmotaClient\":%s"), buffer); ResponseAppend_P(PSTR(",\"TasmotaClient\":%s"), buffer);
} }
} }
}
void TasmotaClient_sendCmnd(uint8_t cmnd, uint8_t param) { void TasmotaClient_sendCmnd(uint8_t cmnd, uint8_t param) {
TClientCommand.command = cmnd; TClientCommand.command = cmnd;