mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-11 14:07:00 +03:00
add html version
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "ClassLogFile.h"
|
||||
|
||||
#include "version.h"
|
||||
|
||||
ClassFlowControll tfliteflow;
|
||||
|
||||
TaskHandle_t xHandleblink_task_doFlow = NULL;
|
||||
@@ -417,11 +419,19 @@ esp_err_t handler_sysinfo(httpd_req_t *req)
|
||||
const char* resp_str;
|
||||
string zw;
|
||||
string cputemp = std::to_string(temperatureRead());
|
||||
string gitversion = libfive_git_version();
|
||||
string buildtime = build_time();
|
||||
string gitbranch = libfive_git_branch();
|
||||
string gitbasebranch = git_base_branch();
|
||||
string htmlversion = getHTMLversion();
|
||||
|
||||
zw = "[\
|
||||
{\
|
||||
\"firmware\" : \"2.0.0\",\
|
||||
\"html\" : \"1.0.1\",\
|
||||
\"firmware\" : \"" + gitversion + "\",\
|
||||
\"buildtime\" : \"" + buildtime + "\",\
|
||||
\"gitbranch\" : \"" + gitbranch + "\",\
|
||||
\"gitbasebranch\" : \"" + gitbasebranch + "\",\
|
||||
\"html\" : \"" + htmlversion + "\",\
|
||||
\"cputemp\" : \"" + cputemp + "\",\
|
||||
\"hostname\" : \"host\",\
|
||||
\"IPv4\" : \"IP\"\
|
||||
|
||||
Reference in New Issue
Block a user