From 6bb0f034c34a6e6a3769053e84e61356d2038243 Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Sat, 21 Apr 2018 13:10:44 +0200 Subject: [PATCH] Fix Timer invalid JSON message when too long Fix Timer invalid JSON message when too long (#2447) --- sonoff/xdrv_09_timers.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_09_timers.ino b/sonoff/xdrv_09_timers.ino index 82884ab4e..0ffe94f55 100644 --- a/sonoff/xdrv_09_timers.ino +++ b/sonoff/xdrv_09_timers.ino @@ -345,7 +345,7 @@ boolean TimerCommand() } } else { if (devices_present) { - StaticJsonBuffer<128> jsonBuffer; + StaticJsonBuffer<200> jsonBuffer; JsonObject& root = jsonBuffer.parseObject(dataBufUc); if (!root.success()) { snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"" D_CMND_TIMER "%d\":\"" D_JSON_INVALID_JSON "\"}"), index); // JSON decode failed