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

Wrong time in NTPClientAvr example #110

Closed
Shumatic opened this issue Mar 31, 2020 · 2 comments
Closed

Wrong time in NTPClientAvr example #110

Shumatic opened this issue Mar 31, 2020 · 2 comments

Comments

@Shumatic
Copy link

Could you explain what function on 8266 you refer to here, i cant find any NTP functions in Arduino IDE or ? - could you point me to it :-)

With new improvements in sdk both for esp32 and esp8266, this library has become less usefull. Using internal functions of IDF or NonOS (esp8266) have several advantages and it is mandatory for certain scenarios, like using HTTPS with certificate<

another issue....
I have tried the NTPClientAvr example on a Arduino Mega 2560, and it sync to a wrong time 07:26:50 07/02/2036. Winter Time. unix: 2085982010 - (should be 31-03-2020 16:10). the unix time where taken with now(). it also seems really unstable.sometimes it doesn't sync and some time it stops syncing,
Only change from example is ethernet setup and NTP.begin("dk.pool.ntp.org", 1, true, 0);

Thanks in advance

@gmag11
Copy link
Owner

gmag11 commented Nov 26, 2020

For ESP32 and ESP8266 you can use my new developed library https://github.com/gmag11/ESPNtpClient. Its use is very similar to this one but adds much higher sync accuracy and does not use external libraries.

Regarding AVR, I am not able to test neither AVR or MKR code as I do not own any board like that anymore. That's one of the reasons to stop developing this and move my effort to the new lib.

@gmag11
Copy link
Owner

gmag11 commented Nov 26, 2020

Regarding simple NTP configuration on ESP8266 and ESP32 you can check this: #60 (comment)

@gmag11 gmag11 closed this as completed Mar 9, 2021
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