GithubHelp home page GithubHelp logo

ntptime's Introduction

NtpTime

A simple NTP client. Keeps the Particle Photon Time synced to NTP. This should not be used for high precision time keeping. The Particle Photon Time is only one second resolution and hardware limitations prevent high accuracy setting. So the system time shouldn't be used for anything that needs more than accuracy to a large fraction of a second.

There is an interface that will return the time to millisecond resolution. Accuracy of that interface is primarily dependent on internet latency.

NtpTime uses one of the Photon's software timers.

ntptime's People

Contributors

classtech avatar joscha avatar

Stargazers

 avatar Yaroslav avatar MikeCa avatar

Watchers

MikeCa avatar  avatar

Forkers

joscha

ntptime's Issues

Core? Also CPP

Hi! Thanks for this. Should it work on a Particle Core? Also, bit confused where I define the server and which of the many CPP files I need. I'm used to there being a CPP file, a .H file and then code to use in your INO file. Here there seem to be lots of CPP files, a couple of .H files and a usage.ino. Any pointers on how to get started much appreciated! Thanks

It doesn't seem like this will update the time more than once

Hi,
am I missing something or is there a missing timer->start()? According to the particle docs: "a newly created timer is stopped"?

Also, in case of success you set synced to true but never reset it back to false in case of future failures?

And finally, according to the particle docs you need to call changePeriodFromISR instead of changePeriod since most of the calls should be happening from the ISR.

Time Zone

Hi.
How do I set up the Time Zone?

Thanks..

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.