jomjol 5 лет назад
Родитель
Сommit
3869da9d06

+ 7 - 1
README.md

@@ -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.

+ 2 - 0
code/components/connect_wlan/connect_wlan.cpp

@@ -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]);

+ 2 - 3
code/components/jomjol_controlcamera/server_camera.cpp

@@ -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");
-
-    LogFile.WriteToFile("handler_capture_with_ligth");
+#endif
     char _query[100];
     char _query[100];
     char _delay[10];
     char _delay[10];
 
 

+ 6 - 2
code/components/jomjol_flowcontroll/ClassFlowControll.cpp

@@ -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;
 }
 }

+ 5 - 2
code/components/jomjol_logfile/ClassLogFile.cpp

@@ -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;
-    _zw = "\t" + _id + "\t" + getESPHeapInfo();
+std::string _zw = "\t" + _id;
+    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;
 }
 }

+ 3 - 0
code/components/jomjol_logfile/ClassLogFile.h

@@ -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);

+ 2 - 2
code/main/version.cpp

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

+ 2 - 2
code/version.cpp

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

BIN
firmware/bootloader.bin


BIN
firmware/firmware.bin