-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting valid flag is true and time is wrong! #32
Comments
waged
changed the title
Getting valid flag is true and time is wrong
Getting valid flag is true and time is wrong!
Jan 19, 2021
Same issue. Any workaround? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My ESP32 Wrover one time per 10 get the wrong time like "2036-2-7T6:28:16" although i check the strDateTime.isValid and it's true. the router NTP time is correct and never sending the wrong time but it could be little slow.
NTPtime NTPch("pool.ntp.org"); NTPch.setRecvTimeout(5); dateTime = NTPch.getNTPtime(0.0, 0); if (dateTime.valid) { actualHours = dateTime.hour; actualMinutes = dateTime.minute; actualSeconds = dateTime.second; actualYear = dateTime.year; actualMonth = dateTime.month; actualDays = dateTime.day; Serial.printf("Year: %d, Month: %d, Day: %d, Hours: %d, Minutes: %d \n", actualYear, actualMonth, actualDays, actualHours, actualMinutes); }
The text was updated successfully, but these errors were encountered: