mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
logging class working vector
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
//
|
||||
#define TELEMETRY_UPDATE_INTERVAL_MIN 60
|
||||
|
||||
|
||||
//
|
||||
// Configuration
|
||||
//
|
||||
|
||||
@@ -129,3 +129,6 @@ extern void uptime_init();
|
||||
|
||||
// Web
|
||||
extern void web_init();
|
||||
|
||||
// Upgrade
|
||||
extern String serverIP;
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
class LoggingClass;
|
||||
|
||||
typedef std::vector<LoggingClass> MyLoggingVector;
|
||||
|
||||
class LoggingClass {
|
||||
public:
|
||||
LoggingClass(unsigned long period, unsigned int maxPoints, String key);
|
||||
@@ -12,15 +16,13 @@ class LoggingClass {
|
||||
void writeDate();
|
||||
|
||||
private:
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
unsigned long difference;
|
||||
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
unsigned long difference;
|
||||
|
||||
unsigned long _period;
|
||||
unsigned int _maxPoints;
|
||||
String _key;
|
||||
unsigned long _period;
|
||||
unsigned int _maxPoints;
|
||||
String _key;
|
||||
};
|
||||
|
||||
extern std::vector<LoggingClass*> myLogging;
|
||||
//extern LoggingClass* myLogging;
|
||||
extern MyLoggingVector* myLogging;
|
||||
|
||||
Reference in New Issue
Block a user