mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
getData
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -56,10 +56,14 @@ void setup() {
|
||||
pm.info("WebAdmin");
|
||||
web_init();
|
||||
|
||||
pm.info("TimeSync");
|
||||
pm.info("Clock");
|
||||
rtc = new Clock();
|
||||
rtc->setNtpPool(jsonReadStr(configSetupJson, "ntp"));
|
||||
rtc->setTimezone(jsonReadStr(configSetupJson, "timezone").toInt());
|
||||
|
||||
ts.add(
|
||||
TIME_SYNC, 30000, [&](void*) {
|
||||
startTimeSync();
|
||||
rtc->hasSync();
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
@@ -69,7 +73,7 @@ void setup() {
|
||||
#endif
|
||||
ts.add(
|
||||
TEST, 10000, [&](void*) {
|
||||
printMemoryStatus();
|
||||
pm.info(printMemoryStatus());
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user