add html version

This commit is contained in:
Philipp Harsch
2020-09-29 00:15:12 +02:00
parent 9080f1d2f0
commit 964486a819
7 changed files with 66 additions and 16 deletions

View File

@@ -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\"\