mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-08-02 20:24:40 +02:00
Display heap
This commit is contained in:
@@ -766,6 +766,8 @@ uint32_t deltaSSE = 10;
|
||||
uint32_t lastWS = 0;
|
||||
uint32_t deltaWS = 100;
|
||||
|
||||
uint32_t lastHeap = 0;
|
||||
|
||||
void loop() {
|
||||
uint32_t now = millis();
|
||||
if (now - lastSSE >= deltaSSE) {
|
||||
@@ -779,4 +781,8 @@ void loop() {
|
||||
// }
|
||||
lastWS = millis();
|
||||
}
|
||||
if(now - lastHeap >= 2000) {
|
||||
Serial.printf("Free heap: %" PRIu32 "\n", ESP.getFreeHeap());
|
||||
lastHeap = now;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user