mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add upload_sec to api/system/info and removed # from some names to keep consistent with MQTT heartbeat - #80
This commit is contained in:
@@ -6,4 +6,7 @@
|
|||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
||||||
|
- removed Rx echo failures counting as incomplete telegrams. BAd telegrams show as Warning and not Errors. [#80](https://github.com/emsesp/EMS-ESP32/issues/80)
|
||||||
|
- add upload_sec to `api/system/info` and removed # from some names to keep consistent with MQTT heartbeat
|
||||||
|
|
||||||
## Removed
|
## Removed
|
||||||
|
|||||||
@@ -881,6 +881,8 @@ bool System::command_info(const char * value, const int8_t id, JsonObject & json
|
|||||||
|
|
||||||
node["version"] = EMSESP_APP_VERSION;
|
node["version"] = EMSESP_APP_VERSION;
|
||||||
node["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
node["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
||||||
|
node["uptime_sec"] = uuid::get_uptime_sec();
|
||||||
|
|
||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
node["freemem"] = ESP.getFreeHeap() / 1000L; // kilobytes
|
node["freemem"] = ESP.getFreeHeap() / 1000L; // kilobytes
|
||||||
#endif
|
#endif
|
||||||
@@ -902,16 +904,16 @@ bool System::command_info(const char * value, const int8_t id, JsonObject & json
|
|||||||
|
|
||||||
if (EMSESP::bus_status() != EMSESP::BUS_STATUS_OFFLINE) {
|
if (EMSESP::bus_status() != EMSESP::BUS_STATUS_OFFLINE) {
|
||||||
node["bus protocol"] = EMSbus::is_ht3() ? F("HT3") : F("Buderus");
|
node["bus protocol"] = EMSbus::is_ht3() ? F("HT3") : F("Buderus");
|
||||||
node["#telegrams received"] = EMSESP::rxservice_.telegram_count();
|
node["telegrams received"] = EMSESP::rxservice_.telegram_count();
|
||||||
node["#read requests sent"] = EMSESP::txservice_.telegram_read_count();
|
node["read requests sent"] = EMSESP::txservice_.telegram_read_count();
|
||||||
node["#write requests sent"] = EMSESP::txservice_.telegram_write_count();
|
node["write requests sent"] = EMSESP::txservice_.telegram_write_count();
|
||||||
node["#incomplete telegrams"] = EMSESP::rxservice_.telegram_error_count();
|
node["incomplete telegrams"] = EMSESP::rxservice_.telegram_error_count();
|
||||||
node["#tx fails"] = EMSESP::txservice_.telegram_fail_count();
|
node["tx fails"] = EMSESP::txservice_.telegram_fail_count();
|
||||||
node["rx line quality"] = EMSESP::rxservice_.quality();
|
node["rx line quality"] = EMSESP::rxservice_.quality();
|
||||||
node["tx line quality"] = EMSESP::txservice_.quality();
|
node["tx line quality"] = EMSESP::txservice_.quality();
|
||||||
if (Mqtt::enabled()) {
|
if (Mqtt::enabled()) {
|
||||||
node["#MQTT publishes"] = Mqtt::publish_count();
|
node["MQTT publishes"] = Mqtt::publish_count();
|
||||||
node["#MQTT publish fails"] = Mqtt::publish_fails();
|
node["MQTT publish fails"] = Mqtt::publish_fails();
|
||||||
}
|
}
|
||||||
if (EMSESP::dallas_enabled()) {
|
if (EMSESP::dallas_enabled()) {
|
||||||
node["#dallas sensors"] = EMSESP::sensor_devices().size();
|
node["#dallas sensors"] = EMSESP::sensor_devices().size();
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define EMSESP_APP_VERSION "3.1.2b0"
|
#define EMSESP_APP_VERSION "3.1.2b1"
|
||||||
|
|||||||
Reference in New Issue
Block a user