mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
first
This commit is contained in:
17
src/main.cpp
17
src/main.cpp
@@ -20,6 +20,7 @@
|
||||
#include "Utils/Timings.h"
|
||||
#include "Utils/WebUtils.h"
|
||||
#include "WebServer.h"
|
||||
#include "WebSocket.h"
|
||||
#include "items/ButtonInClass.h"
|
||||
#include "items/vCountDown.h"
|
||||
#include "items/vImpulsOut.h"
|
||||
@@ -52,6 +53,8 @@ void setup() {
|
||||
myNotAsyncActions = new NotAsync(do_LAST);
|
||||
myScenario = new Scenario();
|
||||
|
||||
wsInit();
|
||||
|
||||
//=========================================initialisation==============================================================
|
||||
setChipId();
|
||||
fileSystemInit();
|
||||
@@ -84,7 +87,7 @@ void setup() {
|
||||
|
||||
getFSInfo();
|
||||
|
||||
// testsPerform();
|
||||
testsPerform();
|
||||
|
||||
just_load = false;
|
||||
initialized = true;
|
||||
@@ -100,8 +103,6 @@ void setup() {
|
||||
|
||||
// setupESP();
|
||||
|
||||
sendEspSetupToWS();
|
||||
|
||||
SerialPrint("I", F("System"), F("✔ Initialization completed"));
|
||||
}
|
||||
|
||||
@@ -109,6 +110,16 @@ void loop() {
|
||||
if (!initialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
testLoop();
|
||||
|
||||
// if (wsSetupFlag) {
|
||||
// wsSetupFlag = false;
|
||||
// wsSendSetup();
|
||||
//}
|
||||
|
||||
// loopWsExecute();
|
||||
|
||||
#ifdef OTA_UPDATES_ENABLED
|
||||
ArduinoOTA.handle();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user