|
@ -135,6 +135,16 @@ void webserverStart(void) { |
|
|
request->send(200, "text/plain", Log_GetRingBuffer()); |
|
|
request->send(200, "text/plain", Log_GetRingBuffer()); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// heap/psram-info
|
|
|
|
|
|
wServer.on( |
|
|
|
|
|
"/info", HTTP_GET, [](AsyncWebServerRequest *request) { |
|
|
|
|
|
String info = "Free heap: " + String(ESP.getFreeHeap()); |
|
|
|
|
|
info += "\nFree PSRAM: "; |
|
|
|
|
|
info += (!psramInit()) ? "not available" : String(ESP.getFreePsram()); |
|
|
|
|
|
request->send_P(200, "text/plain", info.c_str()); |
|
|
|
|
|
}, |
|
|
|
|
|
handleUpload); |
|
|
|
|
|
|
|
|
// NVS-backup-upload
|
|
|
// NVS-backup-upload
|
|
|
wServer.on( |
|
|
wServer.on( |
|
|
"/upload", HTTP_POST, [](AsyncWebServerRequest *request) { |
|
|
"/upload", HTTP_POST, [](AsyncWebServerRequest *request) { |
|
|