From 152a5d364aae8f332f91060993f9a83728a04554 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 6 Feb 2022 18:11:42 +0100 Subject: [PATCH] Add bootcount to Info3 message --- tasmota/xdrv_02_9_mqtt.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_02_9_mqtt.ino b/tasmota/xdrv_02_9_mqtt.ino index c3593708d..b32979996 100644 --- a/tasmota/xdrv_02_9_mqtt.ino +++ b/tasmota/xdrv_02_9_mqtt.ino @@ -942,7 +942,7 @@ void MqttConnected(void) { } else { ResponseAppend_P(PSTR("\"%s\""), GetResetReason().c_str()); } - ResponseJsonEndEnd(); + ResponseAppend_P(PSTR(",\"" D_JSON_BOOTCOUNT "\":%d}}"), Settings->bootcount +1); MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_INFO "3"), Settings->flag5.mqtt_info_retain); }