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

RTC #1

Open
metalivedev opened this issue May 16, 2016 · 0 comments
Open

RTC #1

metalivedev opened this issue May 16, 2016 · 0 comments

Comments

@metalivedev
Copy link

Hi! I saw your article on HN and you indicated that you had trouble with keeping real time. If you have a GPS signal then you have real time. Time is part of the GPS signal.

Please see https://labs.mediatek.com/site/global/developer_tools/mediatek_linkit/api_references/Lib_DataTime.gsp

As long as LinkIt ONE is powered (either by USB or by battery) the clock will continue to tick. In the case of losing power or first time booting, there are several ways to initialize current time: Parse the GPGGA data from GPS.getData() or connect to an NTP (Network Time Protocol) server via Wi-Fi.

I hope that helps! I don't have any equipment to test with, or I would have tried to add it to your project code.

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

1 participant