Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Date Question
#2

Some extra information;
This is the debug output for NTP.

RTC current date: Set 06 2018
12:24:18.267 -> RTC current time: 12:24:18
12:24:18.267 -> Sending NTP request to sync clock...
12:24:18.301 -> NTP replied
12:24:18.301 -> UTC time from NTP server: 01:24:18
12:24:18.339 -> RTC adjusted to local time: 12:24:18
WiFi connection is ON

Something interesting is if I restart it again before the big clock appears the debug output is still showing the "RTC current date: Set 06 2018"  is this where it is getting the incorrect "06-09-2018" date from?

RTC current date: Set 06 2018
12:28:04.815 -> RTC current time: 12:28:03
12:28:04.815 -> Sending NTP request to sync clock...
12:28:04.856 -> NTP replied
12:28:04.856 -> UTC time from NTP server: 01:28:05
12:28:04.856 -> RTC adjusted to local time: 12:28:05
WiFi connection is ON


But if I leave it to do another NTP update without reseting the unit the date the RTC date does change "RTC current date: Oct 16 2018" But on another rest the RTC goes back to "RTC current date: Set 06 2018"

ESP8266 FW Version: AT+GMR

12:27:55.207 -> AT version:1.2.0.0(Jul  1 2016 20:04:45)
12:27:55.245 -> SDK version:1.5.4.1(39cb9a32)
12:27:55.245 -> Ai-Thinker Technology Co. Ltd.
12:27:55.283 -> Dec  2 2016 14:21:16
12:27:55.283 -> OK
RTC current date: Set 06 2018
12:28:04.815 -> RTC current time: 12:28:03
12:28:04.815 -> Sending NTP request to sync clock...
12:28:04.856 -> NTP replied
12:28:04.856 -> UTC time from NTP server: 01:28:05
12:28:04.856 -> RTC adjusted to local time: 12:28:05
WiFi connection is ON
RTC current date: Oct 16 2018
12:31:14.196 -> RTC current time: 12:31:14
12:31:14.233 -> Sending NTP request to sync clock...
12:31:14.233 -> NTP replied
12:31:14.233 -> UTC time from NTP server: 01:31:14
12:31:14.269 -> RTC adjusted to local time: 12:31:14
ESP8266 FW Version: WIFI GOT IP
12:32:08.495 -> AT+GMR

12:32:08.495 -> AT version:1.2.0.0(Jul  1 2016 20:04:45)
12:32:08.564 -> SDK version:1.5.4.1(39cb9a32)
12:32:08.564 -> Ai-Thinker Technology Co. Ltd.
12:32:08.564 -> Dec  2 2016 14:21:16
12:32:08.564 -> OK
RTC current date: Set 06 2018
12:32:18.105 -> RTC current time: 12:32:17
12:32:18.105 -> Sending NTP request to sync clock...
NTP replied
12:32:18.174 -> UTC time from NTP server: 01:32:18
12:32:18.212 -> RTC adjusted to local time: 12:32:18
WiFi connection is ON
Reply


Messages In This Thread
Date Question - by mikeyk - 16-10-2018, 02:12
RE: Date Question - by mikeyk - 16-10-2018, 02:30
RE: Date Question - by werk_ag - 16-10-2018, 02:49
RE: Date Question - by mikeyk - 16-10-2018, 03:30
RE: Date Question - by werk_ag - 17-10-2018, 00:02
RE: Date Question - by mikeyk - 20-10-2018, 11:25
RE: Date Question - by werk_ag - 21-10-2018, 00:47
RE: Date Question - by mikeyk - 08-04-2019, 13:03
RE: Date Question - by werk_ag - 08-04-2019, 19:39
RE: Date Question - by mikeyk - 09-04-2019, 13:31
RE: Date Question - by hornychz - 09-04-2019, 22:03
RE: Date Question - by werk_ag - 09-04-2019, 22:08



Users browsing this thread: 1 Guest(s)