mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
оптимизация ntp
This commit is contained in:
@@ -44,12 +44,12 @@ void setup() {
|
|||||||
standWebSocketsInit();
|
standWebSocketsInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//инициализация mqtt
|
|
||||||
mqttInit();
|
|
||||||
|
|
||||||
// NTP
|
// NTP
|
||||||
ntpInit();
|
ntpInit();
|
||||||
|
|
||||||
|
//инициализация mqtt
|
||||||
|
mqttInit();
|
||||||
|
|
||||||
//настраиваем микроконтроллер
|
//настраиваем микроконтроллер
|
||||||
configure("/config.json");
|
configure("/config.json");
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ void ntpInit() {
|
|||||||
if (prevTime != timenow) {
|
if (prevTime != timenow) {
|
||||||
prevTime = timenow;
|
prevTime = timenow;
|
||||||
// jsonWriteStr(configLiveJson, "timenow", timenow);
|
// jsonWriteStr(configLiveJson, "timenow", timenow);
|
||||||
SerialPrint("I", F("NTP"), getDateTimeDotFormated());
|
SerialPrint("I", F("✔ NTP"), getDateTimeDotFormated());
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nullptr, true);
|
nullptr, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user