mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
add logging class (not working version)
This commit is contained in:
26
include/items/LoggingClass.h
Normal file
26
include/items/LoggingClass.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
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 difference;
|
||||
|
||||
unsigned long _period;
|
||||
unsigned int _maxPoints;
|
||||
String _key;
|
||||
};
|
||||
|
||||
extern std::vector<LoggingClass*> myLogging;
|
||||
//extern LoggingClass* myLogging;
|
||||
Reference in New Issue
Block a user