diff --git a/CHANGELOG.md b/CHANGELOG.md index fe013d615..c30fde0c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,16 @@ All notable changes to this project will be documented in this file. ## [Unreleased] - Development +## [9.4.0.5] +### Changed +- Allow longer MQTT response messages by removing fixed memory buffer with size 1040 to heap allocated buffer +- Command ``Timers`` layout of JSON message changed to single line + ## [9.4.0.4] ### Added - Version bump to signal new features to Hass - Support for BM8563 RTC chip (I2C) found in M5Stack Core2 and M5StickC -- Command ``Status0`` providing all status in one line +- Command ``Status0`` providing all status information on a single line ### Changed - IRremoteESP8266 library from v2.7.16 to v2.7.18 diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 14e2dfb76..405a9a707 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -76,7 +76,7 @@ The binaries can be downloaded from either https://github.com/arendst/Tasmota/tr [Complete list](BUILDS.md) of available feature and sensors. -## Changelog v9.4.0.4 +## Changelog v9.4.0.5 ### Added - Command ``Status0`` providing all status in one line - Initial support for optional ``Template`` JSON fieldpair ``"CMND":"||..."`` [#11788](https://github.com/arendst/Tasmota/issues/11788) @@ -94,6 +94,8 @@ The binaries can be downloaded from either https://github.com/arendst/Tasmota/tr ### Changed - IRremoteESP8266 library from v2.7.16 to v2.7.18 +- Allow longer MQTT response messages by removing fixed memory buffer with size 1040 to heap allocated buffer +- Command ``Timers`` layout of JSON message changed to single line ### Fixed diff --git a/tasmota/tasmota_version.h b/tasmota/tasmota_version.h index 8ac5280fa..71a84887f 100644 --- a/tasmota/tasmota_version.h +++ b/tasmota/tasmota_version.h @@ -20,6 +20,6 @@ #ifndef _TASMOTA_VERSION_H_ #define _TASMOTA_VERSION_H_ -const uint32_t VERSION = 0x09040004; +const uint32_t VERSION = 0x09040005; #endif // _TASMOTA_VERSION_H_ diff --git a/tasmota/xdrv_09_timers.ino b/tasmota/xdrv_09_timers.ino index 22e38a2e6..6aec581aa 100644 --- a/tasmota/xdrv_09_timers.ino +++ b/tasmota/xdrv_09_timers.ino @@ -460,7 +460,14 @@ void CmndTimers(void) Settings.flag3.timers_enable = !Settings.flag3.timers_enable; // CMND_TIMERS } } - +#ifdef MQTT_DATA_STRING + Response_P(PSTR("{\"" D_CMND_TIMERS "\":\"%s\""), GetStateText(Settings.flag3.timers_enable)); + for (uint32_t i = 0; i < MAX_TIMERS; i++) { + ResponseAppend_P(PSTR(",")); + PrepShowTimer(i +1); + } + ResponseJsonEnd(); +#else ResponseCmndStateText(Settings.flag3.timers_enable); // CMND_TIMERS MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_STAT, XdrvMailbox.command); @@ -481,6 +488,7 @@ void CmndTimers(void) } } ResponseClear(); +#endif } #ifdef USE_SUNRISE