mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
26 lines
482 B
C++
26 lines
482 B
C++
#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;
|