WebUI heap status (#23356)

This commit is contained in:
s-hadinger 2025-04-30 10:01:59 +02:00 committed by GitHub
parent 060f47678d
commit 736d4d6576
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
- Wireguard VPN (#23347)
- Optional Wifi strength indicator in WebUI status line (#23352)
- WebUI status line left and renamed events `FUNC_WEB_STATUS_LEFT` and `FUNC_WEB_STATUS_RIGHT` (#23354)
- WebUI heap status
### Breaking Changed

View File

@ -509,6 +509,7 @@
#define USE_ENHANCED_GUI_WIFI_SCAN // Enable Wi-Fi scan output with BSSID (+0k5 code)
#define USE_WEB_STATUS_LINE // Enable upper status line in web UI (+0k5 code)
// #define USE_WEB_STATUS_LINE_WIFI // Enable upper left wifi indicator in main page (+0k5 code)
// #define USE_WEB_STATUS_LINE_HEAP // Enable upper left display of free heap memory (+0k1 code)
// #define USE_ALPINEJS // Enable AlpineJS v2.8.2 (+8k8 code)
// #define USE_WEBSEND_RESPONSE // Enable command WebSend response message (+1k code)
// #define USE_WEBGETCONFIG // Enable restoring config from external webserver (+0k6)

View File

@ -1931,6 +1931,9 @@ bool HandleRootStatusRefresh(void) {
rssi >= -85 ? "active" : "");
}
#endif // USE_WEB_STATUS_LINE_WIFI
#ifdef USE_WEB_STATUS_LINE_HEAP
WSContentSend_P("<span>&nbsp;%ik</span>", ESP_getFreeHeap() / 1024);
#endif // USE_WEB_STATUS_LINE_HEAP
// display here anything that goes on the left side
XsnsXdrvCall(FUNC_WEB_STATUS_LEFT);
WSContentSend_P(PSTR("</div>"));