mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Logging in progress
This commit is contained in:
@@ -9,19 +9,21 @@ typedef std::vector<LoggingClass> MyLoggingVector;
|
||||
|
||||
class LoggingClass {
|
||||
public:
|
||||
|
||||
LoggingClass(unsigned long period, unsigned int maxPoints, String key);
|
||||
~LoggingClass();
|
||||
|
||||
void loop();
|
||||
void writeDate();
|
||||
|
||||
private:
|
||||
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
|
||||
unsigned long _period;
|
||||
unsigned int _maxPoints;
|
||||
String _key;
|
||||
|
||||
void addNewDelOldData(const String filename, size_t maxPoints, String payload);
|
||||
};
|
||||
|
||||
extern MyLoggingVector* myLogging;
|
||||
|
||||
Reference in New Issue
Block a user