logging class working vector

This commit is contained in:
Dmitry Borisenko
2020-10-31 21:07:49 +03:00
parent 0385beccdd
commit ff12345b12
10 changed files with 44 additions and 30 deletions

View File

@@ -96,9 +96,12 @@ void setup() {
just_load = false;
initialized = true; //this second POST makes the data to be processed (you don't need to connect as "keep-alive" for that to work)
myLogging = new LoggingClass[1](5000, 200, "array");
//myLogging = new LoggingClass(5000, 200, "test");
myLogging = new MyLoggingVector();
myLogging->push_back(LoggingClass(5000, 1, "5 sec"));
myLogging->push_back(LoggingClass(10000, 1, "10 sec"));
//myLogging->push_back(new LoggingClass());
}
void loop() {
@@ -121,5 +124,6 @@ void loop() {
myNotAsyncActions->loop();
ts.update();
myLogging->loop();
myLogging->at(0).loop();
myLogging->at(1).loop();
}