Add bootcount to Info3 message

This commit is contained in:
Theo Arends 2022-02-06 18:11:42 +01:00
parent 6835eabc39
commit 152a5d364a

View File

@ -942,7 +942,7 @@ void MqttConnected(void) {
} else { } else {
ResponseAppend_P(PSTR("\"%s\""), GetResetReason().c_str()); 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); MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_INFO "3"), Settings->flag5.mqtt_info_retain);
} }