Git Product home page Git Product logo

Comments (6)

gmag11 avatar gmag11 commented on July 17, 2024 1

I've rewritten the lib to have same code for all platforms, getting rid of internal espressif NTP calls from SDK. This will allow to improve sync algorithm. It is on https://github.com/gmag11/NtpClient/tree/pre2.5.0.

Next step (with no ETA yet :( ) will be implementing complete NTP calculation to get millisecond precision.

from ntpclient.

gmag11 avatar gmag11 commented on July 17, 2024

Thank you!

As I currently use internal ESP8266 SDK sntp function calls I'm stick to 1 second resolution. I'm trying to implement NTP protocol in a separate function so I can control what it does.

I will not be soon as my real world job get most of my time.

from ntpclient.

gmag11 avatar gmag11 commented on July 17, 2024

I've tried to modify TimeLib, but there are more features that I'd like to try in a different way. Probably I'll try to develop a new TimeLib with millisecond precission. But it will not happen soon, sorry.

from ntpclient.

rayvt avatar rayvt commented on July 17, 2024

I wrote code to get millisecond precision. It's not very hard, but I don't think it is worth it. The native millis() gives you accurate timing regardless of using ntptime or not. The unix time_t is seconds, and there is not really any need to get finer granularity than that. Setting the time-of-day clock to the nearest second is good enough.

from ntpclient.

gmag11 avatar gmag11 commented on July 17, 2024

I was trying to have a way to synchronize several boards to do coordinated tasks without communication between them.
This can be useful to synchronize LED animations with different boards.
But as timelib is limited to second resolution the only way, besides creating a new timelib implementation, is to delay time syncronization to the next exact second.

from ntpclient.

gmag11 avatar gmag11 commented on July 17, 2024

This won't be implemented in the short term. I close the issue

from ntpclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.