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

Poll interval is much to often #185

Open
Rki009 opened this issue Jan 14, 2023 · 0 comments
Open

Poll interval is much to often #185

Rki009 opened this issue Jan 14, 2023 · 0 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Rki009
Copy link

Rki009 commented Jan 14, 2023

unsigned long _updateInterval = 60000; // In ms

For simple embedded systems that just need to know the time +/- a second a recommended polling interval of 2^10 (1024 seconds) or longer is recommended to minimize the load on public time severs while providing accurate time. With a crystal with +/-50ppm accuracy a polling interval give +/-50 ms! This is in the range of network packet delay times for NTP itself for a typical embedded system. Very sufficient for second level accuracy.
If you need better than this a $10 module can provide a pulse per second accurate time signal to an accuracy of 50 nanoseconds!
There is no need for polling public time servers more often than once an hour.

unsigned long _updateInterval = (1024*1000);  // In ms, 2^10 seconds, 63 minutes

Related: #123

@Rki009 Rki009 changed the title Poll interval is muct to often Poll interval is much to often Jan 14, 2023
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jan 14, 2023
rein-s added a commit to rein-s/WemosD1-NTP-Weather-tm1637 that referenced this issue Feb 28, 2024
Update NTP update interval as per arduino-libraries/NTPClient#185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants