Skip to content
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

Open
waged opened this issue Jan 19, 2021 · 1 comment
Open

Getting valid flag is true and time is wrong! #32

waged opened this issue Jan 19, 2021 · 1 comment

Comments

@waged
Copy link

waged commented Jan 19, 2021

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); }

@waged 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
@KieranSteyn
Copy link

Same issue. Any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants