ESPDateTime
ESPDateTime copied to clipboard
Date Time Functions and Classes for ESP8266 and ESP32
So.... if I call DateTime.begin() once in setup() just like the top page's example, does it periodically re-synchronise the time, or does it only do that once at begin() and...
when I used “DateTime.setTime(1691507990,1)” to set time, the value of "DateTime.getTime()" is 0. code: `DateTime.setTime(1691507990,1); Serial.printf("getBootTime:%ld, getTime:%ld\r\n",DateTime.getBootTime(), DateTime.getTime());` log: `setTime,timeSecs:1691507990, bootTimeSecs:5398 getBootTime:1691507985, getTime:0`
Hi, running fine using WiFi transport, but connecting to internet via SIM800L using TinyGSM library it fail retrieving the time. ``` void setupDateTime() { DateTime.setTimeZone(TZ_Europe_Rome); DateTime.setServer("it.pool.ntp.org"); DateTime.begin(15000); if (!DateTime.isTimeValid()) {...
选择ESP8266,nodemcu1.0,烧录示例代码,会出现无线重启,栈溢出。 (Select ESP8266, nodemcu1.0, burn sample code, there will be wireless restart, stack overflow.) ` Serial.printf("%04d/%02d/%02d %02d:%02d:%02d %ld (%s)\n", p.getYear(), p.getMonth(), p.getMonthDay(), p.getHours(), p.getMinutes(), p.getSeconds(), p.getTime(), p.getTimeZone());` 将其中包含的%s,p.getTimeZone()打印对象去除掉就不会了,但是在烧录到esp32上面没有这个情况。 (Removing the...