mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
262 Logging added, working version
This commit is contained in:
@@ -10,7 +10,7 @@ typedef std::vector<LoggingClass> MyLoggingVector;
|
||||
class LoggingClass {
|
||||
public:
|
||||
|
||||
LoggingClass(unsigned long period, unsigned int maxPoints, String key);
|
||||
LoggingClass(unsigned long period, unsigned int maxPoints, String loggingValueKey, String key);
|
||||
~LoggingClass();
|
||||
|
||||
void loop();
|
||||
@@ -21,9 +21,14 @@ class LoggingClass {
|
||||
unsigned long prevMillis;
|
||||
unsigned long _period;
|
||||
unsigned int _maxPoints;
|
||||
String _loggingValueKey;
|
||||
String _key;
|
||||
|
||||
void addNewDelOldData(const String filename, size_t maxPoints, String payload);
|
||||
};
|
||||
|
||||
extern MyLoggingVector* myLogging;
|
||||
|
||||
extern void choose_log_date_and_send();
|
||||
extern void sendLogData(String file, String topic);
|
||||
extern void clean_log_date();
|
||||
|
||||
Reference in New Issue
Block a user