mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
change mqttpublishfails and fragmentation in MQTT
This commit is contained in:
@@ -266,15 +266,15 @@ void System::send_heartbeat() {
|
|||||||
doc["status"] = "disconnected";
|
doc["status"] = "disconnected";
|
||||||
}
|
}
|
||||||
|
|
||||||
doc["rssi"] = rssi;
|
doc["rssi"] = rssi;
|
||||||
doc["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
doc["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
||||||
doc["uptime_sec"] = uuid::get_uptime_sec();
|
doc["uptime_sec"] = uuid::get_uptime_sec();
|
||||||
doc["mqttpublishfails"] = Mqtt::publish_fails();
|
doc["mqttfails"] = Mqtt::publish_fails();
|
||||||
doc["txfails"] = EMSESP::txservice_.telegram_fail_count();
|
doc["txfails"] = EMSESP::txservice_.telegram_fail_count();
|
||||||
doc["rxfails"] = EMSESP::rxservice_.telegram_error_count();
|
doc["rxfails"] = EMSESP::rxservice_.telegram_error_count();
|
||||||
doc["freemem"] = free_memory;
|
doc["freemem"] = free_memory;
|
||||||
#if defined(ESP8266)
|
#if defined(ESP8266)
|
||||||
doc["fragmentation"] = frag_memory;
|
doc["fragmem"] = frag_memory;
|
||||||
#endif
|
#endif
|
||||||
if (analog_enabled_) {
|
if (analog_enabled_) {
|
||||||
doc["adc"] = analog_;
|
doc["adc"] = analog_;
|
||||||
|
|||||||
Reference in New Issue
Block a user