mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Rolling 20210119
This commit is contained in:
@@ -41,7 +41,13 @@ If you would like to support the developer with a cup of coffee you can do that
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Rolling - (2021-01-18)
|
##### Rolling - (2021-01-19)
|
||||||
|
|
||||||
|
* Improvement for wlan password: additionally now "`=`" is possible in the password or wlan-name
|
||||||
|
|
||||||
|
* Reduction of log file info (removal of memory information)
|
||||||
|
|
||||||
|
2021-01-18
|
||||||
|
|
||||||
* New Feature `ExtendedResolution` uses the after comma digit of the last analog counter to increase precision by one digit.
|
* New Feature `ExtendedResolution` uses the after comma digit of the last analog counter to increase precision by one digit.
|
||||||
This can only be activated in expert mode.
|
This can only be activated in expert mode.
|
||||||
|
|||||||
@@ -314,6 +314,8 @@ void LoadWlanFromFile(std::string fn, std::string &_ssid, std::string &_passphra
|
|||||||
printf("%s", line.c_str());
|
printf("%s", line.c_str());
|
||||||
zerlegt = ZerlegeZeile(line, "=");
|
zerlegt = ZerlegeZeile(line, "=");
|
||||||
zerlegt[0] = trim(zerlegt[0], " ");
|
zerlegt[0] = trim(zerlegt[0], " ");
|
||||||
|
for (int i = 2; i < zerlegt.size(); ++i)
|
||||||
|
zerlegt[i] = zerlegt[i-1] + zerlegt[i];
|
||||||
|
|
||||||
if ((zerlegt.size() > 1) && (toUpper(zerlegt[0]) == "HOSTNAME")){
|
if ((zerlegt.size() > 1) && (toUpper(zerlegt[0]) == "HOSTNAME")){
|
||||||
_hostname = trim(zerlegt[1]);
|
_hostname = trim(zerlegt[1]);
|
||||||
|
|||||||
@@ -95,10 +95,9 @@ esp_err_t handler_capture(httpd_req_t *req)
|
|||||||
|
|
||||||
esp_err_t handler_capture_with_ligth(httpd_req_t *req)
|
esp_err_t handler_capture_with_ligth(httpd_req_t *req)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_DETAIL_ON
|
||||||
LogFile.WriteHeapInfo("handler_capture_with_ligth - Start");
|
LogFile.WriteHeapInfo("handler_capture_with_ligth - Start");
|
||||||
|
#endif
|
||||||
LogFile.WriteToFile("handler_capture_with_ligth");
|
|
||||||
char _query[100];
|
char _query[100];
|
||||||
char _delay[10];
|
char _delay[10];
|
||||||
|
|
||||||
|
|||||||
@@ -212,10 +212,9 @@ bool ClassFlowControll::doFlow(string time)
|
|||||||
zw_time = gettimestring("%Y%m%d-%H%M%S");
|
zw_time = gettimestring("%Y%m%d-%H%M%S");
|
||||||
aktstatus = zw_time + ": " + FlowControll[i]->name();
|
aktstatus = zw_time + ": " + FlowControll[i]->name();
|
||||||
|
|
||||||
// #ifdef DEBUG_DETAIL_ON
|
|
||||||
string zw = "FlowControll.doFlow - " + FlowControll[i]->name();
|
string zw = "FlowControll.doFlow - " + FlowControll[i]->name();
|
||||||
LogFile.WriteHeapInfo(zw);
|
LogFile.WriteHeapInfo(zw);
|
||||||
// #endif
|
|
||||||
|
|
||||||
if (!FlowControll[i]->doFlow(time)){
|
if (!FlowControll[i]->doFlow(time)){
|
||||||
repeat++;
|
repeat++;
|
||||||
@@ -393,6 +392,11 @@ bool ClassFlowControll::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
SetupModeActive = true;
|
SetupModeActive = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((toUpper(zerlegt[0]) == "LOGLEVEL") && (zerlegt.size() > 1))
|
||||||
|
{
|
||||||
|
LogFile.setLogLevel(stoi(zerlegt[1]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,10 @@ ClassLogFile LogFile("/sdcard/log/message", "log_%Y-%m-%d.txt");
|
|||||||
|
|
||||||
void ClassLogFile::WriteHeapInfo(std::string _id)
|
void ClassLogFile::WriteHeapInfo(std::string _id)
|
||||||
{
|
{
|
||||||
std::string _zw;
|
std::string _zw = "\t" + _id;
|
||||||
_zw = "\t" + _id + "\t" + getESPHeapInfo();
|
if (loglevel > 0)
|
||||||
|
_zw = _zw + "\t" + getESPHeapInfo();
|
||||||
|
|
||||||
WriteToFile(_zw);
|
WriteToFile(_zw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,4 +190,5 @@ ClassLogFile::ClassLogFile(std::string _logroot, std::string _logfile)
|
|||||||
logfile = _logfile;
|
logfile = _logfile;
|
||||||
doLogFile = true;
|
doLogFile = true;
|
||||||
retentionInDays = 10;
|
retentionInDays = 10;
|
||||||
|
loglevel = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,14 @@ private:
|
|||||||
std::string logfile;
|
std::string logfile;
|
||||||
bool doLogFile;
|
bool doLogFile;
|
||||||
unsigned short retentionInDays;
|
unsigned short retentionInDays;
|
||||||
|
int loglevel;
|
||||||
public:
|
public:
|
||||||
ClassLogFile(std::string _logpath, std::string _logfile);
|
ClassLogFile(std::string _logpath, std::string _logfile);
|
||||||
|
|
||||||
std::string getESPHeapInfo();
|
std::string getESPHeapInfo();
|
||||||
|
|
||||||
|
void setLogLevel(int i){loglevel = i;};
|
||||||
|
|
||||||
void WriteHeapInfo(std::string _id);
|
void WriteHeapInfo(std::string _id);
|
||||||
|
|
||||||
void SwitchOnOff(bool _doLogFile);
|
void SwitchOnOff(bool _doLogFile);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="c65de27";
|
const char* GIT_REV="2530691";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2021-01-18 20:57";
|
const char* BUILD_TIME="2021-01-19 19:44";
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="c65de27";
|
const char* GIT_REV="2530691";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2021-01-18 20:57";
|
const char* BUILD_TIME="2021-01-19 19:44";
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user