mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
252 added delete function in items list
This commit is contained in:
41
src/main.cpp
41
src/main.cpp
@@ -5,11 +5,11 @@
|
||||
#include "Class/CallBackTest.h"
|
||||
#include "Class/NotAsinc.h"
|
||||
#include "Class/ScenarioClass.h"
|
||||
#include "Utils/StatUtils.h"
|
||||
#include "Cmd.h"
|
||||
#include "Global.h"
|
||||
#include "Init.h"
|
||||
#include "ItemsList.h"
|
||||
#include "Utils/StatUtils.h"
|
||||
#include "Utils/Timings.h"
|
||||
#include "Utils\WebUtils.h"
|
||||
#include "items/ButtonInClass.h"
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
void not_async_actions();
|
||||
|
||||
|
||||
Timings metric;
|
||||
boolean initialized = false;
|
||||
|
||||
@@ -36,62 +35,64 @@ void setup() {
|
||||
myNotAsincActions = new NotAsinc(do_LAST);
|
||||
myScenario = new Scenario();
|
||||
|
||||
SerialPrint("I","FS","FS Init");
|
||||
SerialPrint("I", "FS", "FS Init");
|
||||
fileSystemInit();
|
||||
|
||||
SerialPrint("I","Conf","Config Init");
|
||||
SerialPrint("I", "Conf", "Config Init");
|
||||
loadConfig();
|
||||
|
||||
SerialPrint("I","Time","Clock Init");
|
||||
SerialPrint("I", "Time", "Clock Init");
|
||||
clock_init();
|
||||
|
||||
SerialPrint("I","CMD","Commands Init");
|
||||
SerialPrint("I", "CMD", "Commands Init");
|
||||
cmd_init();
|
||||
|
||||
SerialPrint("I","Sensors","Sensors Init");
|
||||
SerialPrint("I", "Sensors", "Sensors Init");
|
||||
sensorsInit();
|
||||
|
||||
SerialPrint("I","Init","Init Init");
|
||||
SerialPrint("I", "Items", "Items Init");
|
||||
itemsListInit();
|
||||
|
||||
SerialPrint("I", "Init", "Init Init");
|
||||
all_init();
|
||||
|
||||
SerialPrint("I","WIFI","Network Init");
|
||||
SerialPrint("I", "WIFI", "Network Init");
|
||||
routerConnect();
|
||||
|
||||
SerialPrint("I","Uptime","Uptime Init");
|
||||
SerialPrint("I", "Uptime", "Uptime Init");
|
||||
uptime_init();
|
||||
|
||||
SerialPrint("I","Update","Updater Init");
|
||||
SerialPrint("I", "Update", "Updater Init");
|
||||
upgradeInit();
|
||||
|
||||
SerialPrint("I","HTTP","HttpServer Init");
|
||||
SerialPrint("I", "HTTP", "HttpServer Init");
|
||||
HttpServer::init();
|
||||
|
||||
SerialPrint("I","Web","WebAdmin Init");
|
||||
SerialPrint("I", "Web", "WebAdmin Init");
|
||||
web_init();
|
||||
|
||||
SerialPrint("I","Stat","Stat Init");
|
||||
SerialPrint("I", "Stat", "Stat Init");
|
||||
initSt();
|
||||
|
||||
//SerialPrint("I","UDP","Udp Init");
|
||||
//asyncUdpInit();
|
||||
|
||||
SerialPrint("I","Bus","Bus Init");
|
||||
SerialPrint("I", "Bus", "Bus Init");
|
||||
busInit();
|
||||
|
||||
|
||||
#ifdef SSDP_EN
|
||||
SerialPrint("I","SSDP","Ssdp Init");
|
||||
SerialPrint("I", "SSDP", "Ssdp Init");
|
||||
SsdpInit();
|
||||
#endif
|
||||
|
||||
ts.add(
|
||||
TEST, 1000 * 60, [&](void*) {
|
||||
SerialPrint("I","System",printMemoryStatus());
|
||||
|
||||
SerialPrint("I", "System", printMemoryStatus());
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
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)
|
||||
initialized = true; //this second POST makes the data to be processed (you don't need to connect as "keep-alive" for that to work)
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
Reference in New Issue
Block a user