mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Scenario class in working condition
This commit is contained in:
31
src/main.cpp
31
src/main.cpp
@@ -1,15 +1,16 @@
|
||||
|
||||
#include <SSDP.h>
|
||||
|
||||
#include "Class/CallBackTest.h"
|
||||
#include "Class/NotAsinc.h"
|
||||
#include "Class/Switch.h"
|
||||
#include "Class/ScenarioClass.h"
|
||||
#include "Class/Switch.h"
|
||||
#include "Cmd.h"
|
||||
#include "ItemsList.h"
|
||||
#include "Global.h"
|
||||
#include "Utils\WebUtils.h"
|
||||
#include "Init.h"
|
||||
#include "ItemsList.h"
|
||||
#include "Utils/Timings.h"
|
||||
#include <SSDP.h>
|
||||
#include "Utils\WebUtils.h"
|
||||
|
||||
void not_async_actions();
|
||||
|
||||
@@ -77,8 +78,10 @@ void setup() {
|
||||
SsdpInit();
|
||||
|
||||
ts.add(
|
||||
TEST, 1000 * 60, [&](void*) {
|
||||
pm.info(printMemoryStatus());
|
||||
TEST, 30000, [&](void*) {
|
||||
//pm.info(printMemoryStatus());
|
||||
|
||||
//myScenario->loop();
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
@@ -106,23 +109,11 @@ void loop() {
|
||||
//loopScenario();
|
||||
loopCmd();
|
||||
loopSerial();
|
||||
|
||||
|
||||
myNotAsincActions->loop();
|
||||
ts.update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void clock_init() {
|
||||
timeNow = new Clock();
|
||||
timeNow->setNtpPool(jsonReadStr(configSetupJson, "ntp"));
|
||||
@@ -134,5 +125,3 @@ void clock_init() {
|
||||
},
|
||||
nullptr, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user