mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 12:07:02 +00:00
This commit is contained in:
@@ -1865,6 +1865,7 @@ void EMSESP::loop() {
|
||||
}
|
||||
|
||||
// loop through the services
|
||||
webStatusService.loop(); // periodic refresh of cached versions.json
|
||||
rxservice_.loop(); // process any incoming Rx telegrams
|
||||
shower_.loop(); // check for shower on/off
|
||||
temperaturesensor_.loop(); // read sensor temperatures
|
||||
|
||||
@@ -899,9 +899,7 @@ void System::heartbeat_json(JsonObject output) {
|
||||
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2
|
||||
output["temperature"] = (int)temperature_;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef EMSESP_STANDALONE
|
||||
if (!ethernet_connected_) {
|
||||
int8_t rssi = WiFi.RSSI();
|
||||
output["rssi"] = rssi;
|
||||
@@ -909,6 +907,11 @@ void System::heartbeat_json(JsonObject output) {
|
||||
output["wifireconnects"] = EMSESP::esp32React.getWifiReconnects();
|
||||
}
|
||||
#endif
|
||||
|
||||
// see if there is a newer version available
|
||||
if (EMSESP::webStatusService.versions_cache_valid()) {
|
||||
output["upgradeable"] = EMSESP::webStatusService.current_upgradeable();
|
||||
}
|
||||
}
|
||||
|
||||
// send periodic MQTT message with system information
|
||||
|
||||
Reference in New Issue
Block a user