Add device info info page (#2789)

Signed-off-by: Florian Grabmeier <flo.grabmeier@gmail.com>
This commit is contained in:
flox_x
2024-01-08 23:23:57 +01:00
committed by GitHub
parent eb7f2b3705
commit 252c399a76
2 changed files with 85 additions and 0 deletions

View File

@@ -170,6 +170,21 @@ esp_err_t info_get_handler(httpd_req_t *req)
httpd_resp_sendstr(req, zw.c_str());
return ESP_OK;
}
else if (_task.compare("ChipCores") == 0)
{
httpd_resp_sendstr(req, GetChipCoreCount().c_str());
return ESP_OK;
}
else if (_task.compare("ChipRevision") == 0)
{
httpd_resp_sendstr(req, GetChipRevision().c_str());
return ESP_OK;
}
else if (_task.compare("ChipFeatures") == 0)
{
httpd_resp_sendstr(req, GetChipfeatures().c_str());
return ESP_OK;
}
else
{
char formatted[256];