rotation of image log files implemented

improved rotation of message log files
implement deletion of temp images before start new flow
a little bit code cleaning
This commit is contained in:
Jurij Retzlaff
2020-11-12 23:27:00 +01:00
parent acc7253ca1
commit f4f871002b
21 changed files with 259 additions and 123 deletions

View File

@@ -14,6 +14,8 @@
#include <esp_http_server.h>
static const char *TAG = "server-main";
extern httpd_handle_t server;
httpd_handle_t start_webserver(void);

View File

@@ -58,7 +58,8 @@ void doInit(void)
bool doflow(void)
{
std::string zw_time = gettimestring("%Y%m%d-%H%M%S");
std::string zw_time = gettimestring(LOGFILE_TIME_FORMAT);
printf("doflow - start %s\n", zw_time.c_str());
flowisrunning = true;
tfliteflow.doFlow(zw_time);

View File

@@ -1,4 +1,4 @@
const char* GIT_REV="05a0f6f";
const char* GIT_REV="acc7253";
const char* GIT_TAG="";
const char* GIT_BRANCH="master";
const char* BUILD_TIME="2020-11-06 17:57";
const char* BUILD_TIME="2020-11-09 00:12";