mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Fix Timer invalid JSON message when too long
Fix Timer invalid JSON message when too long (#2447)
This commit is contained in:
parent
51b333348c
commit
6bb0f034c3
@ -345,7 +345,7 @@ boolean TimerCommand()
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (devices_present) {
|
if (devices_present) {
|
||||||
StaticJsonBuffer<128> jsonBuffer;
|
StaticJsonBuffer<200> jsonBuffer;
|
||||||
JsonObject& root = jsonBuffer.parseObject(dataBufUc);
|
JsonObject& root = jsonBuffer.parseObject(dataBufUc);
|
||||||
if (!root.success()) {
|
if (!root.success()) {
|
||||||
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"" D_CMND_TIMER "%d\":\"" D_JSON_INVALID_JSON "\"}"), index); // JSON decode failed
|
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"" D_CMND_TIMER "%d\":\"" D_JSON_INVALID_JSON "\"}"), index); // JSON decode failed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user