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();
|
||||
#endif
|
||||
|
||||
//инициализация mqtt
|
||||
mqttInit();
|
||||
|
||||
// NTP
|
||||
ntpInit();
|
||||
|
||||
//инициализация mqtt
|
||||
mqttInit();
|
||||
|
||||
//настраиваем микроконтроллер
|
||||
configure("/config.json");
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ void ntpInit() {
|
||||
if (prevTime != timenow) {
|
||||
prevTime = timenow;
|
||||
// jsonWriteStr(configLiveJson, "timenow", timenow);
|
||||
SerialPrint("I", F("NTP"), getDateTimeDotFormated());
|
||||
SerialPrint("I", F("✔ NTP"), getDateTimeDotFormated());
|
||||
}
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
Reference in New Issue
Block a user